Support the ongoing development of →
Requests Views Validation
Last updated 1 year ago.

I generally share $currentUser to my views, with something like this in the base controller or something like that...

View::share('currentUser', Auth::user());

Then, in the view you can do something like..


Additionally, I tend to just output $content rather than use a section. My goal is to get a hard PHP failure if $content isn't assigned.

{{ $content }}
Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?


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.