jeudi 16 juillet 2020

how to move some controllers and views to subfolder?

I have old project that I want to move it is controllers and views to my new project bu copy and past them, the controller will be pasted in subfolder Http\mod1 and views into Resources\views\mod1, also I will copy the web.php content of the old project and past it into my new project using route grouping for it is routes.

Now since there is a lot of views and controller is there is some way to instruct Laravel that the view that are called by the controllers under group are located under sub folder mod1 ? and how to make the route group point to the controllers inside that group without modifying them one by one?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire