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. how can i achive this?
here is the folder structure.
|-views
|-layouts
|- default.blade.php
|-journal
|-partials
|-leftSection.blade.php
|-rightSection.blade.php
|-detailsjournal.blade.php
Aucun commentaire:
Enregistrer un commentaire