Support the ongoing development of →
posted 8 years ago
Views Blade
Last updated 2 years ago.

If you don't like injecting it, there are also view composers and view shares.


The approach I usually go for would be to make a separate file for the menu only and include it in your layout/pages with @include. Then make a view composer like thomastkim suggested, for the menu file to pass through any data you may need in it.


Sign in to participate in this thread!


Your banner here too?

Nerfair nerfair Joined 16 Mar 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.