If you don't like injecting it, there are also view composers and view shares.
http://laravel.com/docs/5.1/views#view-composers
http://laravel.com/docs/5.1/views#sharing-data-with-all-views
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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community