1. Home
  2. Blade
  3. Ternary

Ternary operator for Blade.

#blade
{{ (Auth::user()->check()) ? 'You are logged in' : 'Please log in' }}
copy
Full Blade cheatsheet
NordVPN NordVPN