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

What you have is correct, but it will depend on where you're using this code. It will not work in some places as the route may not have been found or fired yet.


I'd be using it in my view. I want to use the same view in a couple of different routes, but need to change a couple of pieces of content depending on which one is being used.

Are you saying that either is correct?


Sign in to participate in this thread!


Your banner here too?

jerauf jerauf Joined 16 Feb 2014


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.