Creating Flexible Layouts in Laravel with Yields, Includes, and Slots
Yields
In Laravel, the @yield directive is used in blade templates to define a section that can have code injected or "yielded" by child views.
Here's a basic explanation of how @yield works:
Defining a section with @yield('name')
In a blade file typ...
dcblog.dev7 min read
Kerry Owston
Web Developer
The perfect go-to guide I needed, thanks.