Support the ongoing development of Laravel.io →
Configuration Views Packages

Before I start, I should give you the information, that I am totally new on Laravel, so please!! Don't shout me :)

I have start with Laravel a few days ago, and today I just installed the vespakoen/menu that seems to be very nice, and probably wil work for what I need it.

Just to know, currently I have installed the Laravel 5.1 on my system.

So, the problem I currently have, is where to register my menus in order to be accessible by my application, on every view.

Should I create a service provider ? Should I create a single class and included on bootstrap process ?

What is the correct way to perform this task ?

Last updated 3 years ago.
0

Create a layout with menu and all common parts. Extends the template in all your views.

OR

Use View::share

0

Sign in to participate in this thread!

Eventy

Your banner here too?

merianos merianos Joined 16 Jun 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.

© 2025 Laravel.io - All rights reserved.