laravel 5.2 - How do I create a custom class for the general restful methods, which can be extended to the controllers? -
i noticed been writing same lines of code(index, store, show, update, destroy) following controllers, except model name query data.
itemscontroller, measurescontroller
how extract base functions index, store, show, update, destroy class 'restfulmethods' , show how pass model 'restfulmethods' class, extending itemscontroller or measurescontroller?
Comments
Post a Comment