Support the ongoing development of Laravel.io →
Session Views Blade
Last updated 10 months ago.
0

You access the title variable in the view directly, not as a session:

{{$title}}
Last updated 10 months ago.
0

Hi Martinearn,

I had previously tired {{ $title }} but it returns this error.

Undefined variable: title (View: /Users/sheldon/Sites/laravel/fresh-l4/app/views/layout/admin.blade.php)

I am wondering if nesting my controller in the admin affect the use of ->with('key','value');

Last updated 10 months ago.
0

for nested view use nest()

Last updated 10 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Sheldonnn sheldonnn Joined 24 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.

© 2023 Laravel.io - All rights reserved.