Ternary in Laravel Blade
You are free to use it with {{ }}
.
{{ Auth::check() ? 'yes' : 'no' }}
This works:
{{ Auth::check() ? 'yes' : 'no' }}
I know this question was asked a while ago, but this may help somebody.
You can now do this in Laravel 5.
{{ $variable or "default" }}
Laravel 5 Blade Templates
Laravel 5.2 Blade Template