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

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -