Support the ongoing development of Laravel.io →
Database Views Blade
Last updated 2 years ago.
0

You can use a view composer. That's basically a piece of code that get's executed when a certain view (in that case your layout) is rendered and can give it some additional information (like your menu).

You can find it in the docs here: http://laravel.com/docs/5.1/views#view-composers

0

Sign in to participate in this thread!

Eventy

Your banner here too?

StanlieK stanliek Joined 9 Nov 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.