Question : how can set defult value for yield in laravel
Answered by : mohamad-shahkhajeh
@yield('sidebar', 'Default Content');
Source : | Last Update : Tue, 01 Jun 21
Question : @yield laravel
Answered by : douglas-lee
< some html or other script >
@yield('needed_section_name')
< more html or other script >
Source : https://stackoverflow.com/questions/41916127/whats-the-difference-between-laravel-blades-yield-and-include | Last Update : Wed, 08 Jun 22
Question : @yield extends laravel
Answered by : douglas-lee
@extends('layout.file_name')
... code as neeeded
@section('needed_section_name')
< some cool code here >
@stop
...
more code as needed
Source : https://stackoverflow.com/questions/41916127/whats-the-difference-between-laravel-blades-yield-and-include | Last Update : Wed, 08 Jun 22