Model, View and Controller "Multipurpose" - Laravel 5.1

2

Good morning, I have in my application 10 different tables, but it has the same structure ... id | nome | descricao . For each table I have in laravel the Model , the Controller and the Views of cadastre, listing and edition. I would like to know if you have some way to use the same Model , Controller and View to manage all this, or if you can minimize it in some way, since it has many similar files and I do not think this is really necessary , I just lack knowledge.

    
asked by anonymous 08.01.2016 / 13:02

1 answer

2

Well, I'm not sure if it's the best solution, but I liked it ... I just put all the tables together and added a "type" column. As the volume of data for each is very low I think it will work well.

    
08.01.2016 / 14:20