1// laravel optional parameter
2{{ $variable ?? 'empty or write some message' }}
3{{ $data ?? ' ' }}
4
5// laravel variable is set or not
6@isset($variable)
7 // do some stuff when varaibale have value
8@endisset
9
10 // laravel varaible empty or not
11 @empty ($variable)
12 // do some stuff when varaibale have empty value
13 @endempty