isset laravel
//In Controller
public function returnView() {
return View::make('view')->with('param',$param);
}
//In View
@isset($param)
isset laravel
//In Controller
public function returnView() {
return View::make('view')->with('param',$param);
}
//In View
@isset($param)
laravel blade variable isset, empty or optional
// laravel optional parameter
{{ $variable ?? 'empty or write some message' }}
{{ $data ?? ' ' }}
// laravel variable is set or not
@isset($variable)
// do some stuff when varaibale have value
@endisset
// laravel varaible empty or not
@empty ($variable)
// do some stuff when varaibale have empty value
@endempty
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us