On Laravel 5.2, I'm trying to put two menus (X latest contents, and the same for a specific user) on near every page.
The lazy way would be to generate those arrays in each of the controllers, but is there a way to generate it when the templating system needs them ?
For instance, my template could call something like {{ $menu }}
and the menu would be generated only when this was present ?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1nEWpbh
via IFTTT
Aucun commentaire:
Enregistrer un commentaire