Hi,
I'm completely new to Laravel, working with it for maybe two or three days on a small/medium project.
I am using the Blade templating engine, and read the Laravel docs on how to use it. So I set
protected $layout = 'layouts.master';
For clarity reasons I know want to change the folder structure of my views/layouts to the following:
views/
-- layouts/
---- admin/
------ admin.blade.php, nav.blade.php, etc.
---- master/
------ master.blade.php, menu.blade.php, footer.blade.php, etc.
...
But as soon as I change the $layout to for example
protected $layout = 'layouts.admin.admin';
I get the following error message:
InvalidArgumentException
View [layouts.admin] not found.
Same happened when I tried to use
protected $template
instead of
protected $layout
P.S.: Hope I didn't f*ck up the markup :/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community