mardi 21 août 2018

Execute predispatch in Laravel

I try to create a multilevel dynamic menu, which is embedded in the base layout of my application.

Considering that I am a newbie in laravel, I need to generate the multilevel menu before the loading of the system is finished. So, I think I can use a helper to do that job and from a predispatch call that helper that would revert to an @include('menu').

The problem is that I do not know how laravel works to execute a predispatch or in which controller, helper or serviceprovider should execute the rederizado of the menu.

thanks for your help.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire