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?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/292RlLj
via IFTTT
Aucun commentaire:
Enregistrer un commentaire