dimanche 26 juin 2016

Multiple View Composer to same View reference

I need to pass data into a view, and for this, I used the view composer. All right until then. When, soon after, needed more data for the same view, I add a new view composer, and apparently generates conflict with each other. The view in question is a sidebar, therefore, present in all screens. I tried to use "*" to refer me to view but it did not work. The code:

view()->composer('layouts.app', VehicleFormComposer::class);
view()->composer('layouts.app', CustomerFormComposer::class);

Help?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire