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

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.

0

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?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerauf jerauf Joined 16 Feb 2014

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.