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

Popular posts from this blog

java - AEM: 403 Forbidden occurs when call a Post servlet -

ruby on rails - ActiveRecord order not working -

Google Alert - facebook