1 year ago

View composer alternative?

Posted 1 year ago by mastermarco

I use View composer in my application for navigation where I have a lot of logic about user groups, rights, different user setup... the application is now big and I have to many duplicate queries.

The main logic what I use in view composer is also stored in MainController and I can use this logic trough the whole application.

My question is, can I somehow use the logic from main controller and skip so many duplicate queries or if I export this navigation into a view and generate a route to "include" that route into master view to get the right content?

Please sign in or create an account to participate in this conversation.