1. Home
  2. Blade
  3. Ternary
#blade

Ternary operator for Blade.

{{ (Auth::user()->check()) ? 'You are logged in' : 'Please log in' }}
copy
Full Blade cheatsheet
Sitemap Git repository