I am newbie to PHP Laravel Framework. I am facing a issue regarding extending layouts using @extends
.
Here is the scenario:-
I am having a default Layout (layout->index.blade.php)
, and a view extending that layout detailjournal.blade.php (journal->detailjournal.blade.php)
. Now i want to create partials inside journal folder. It contains leftSection.blade.php
and rightSection.blade.php
. What i need is to yield these two partials into the detailsjournal.blade.php
.
I have tried using @include
, but i want to @yield
.
Is this possible? If yes then how can i achieve it?
here is the folder structure.
|-views
|-layouts
|- default.blade.php
|-journal
|-partials
|-leftSection.blade.php
|-rightSection.blade.php
|-detailsjournal.blade.php