laravel blade variable isset 2c empty or optional

Solutions on MaxInterview for laravel blade variable isset 2c empty or optional by the best coders in the world

showing results for - "laravel blade variable isset 2c empty or optional"
Viktoria
01 Oct 2019
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