laravel guards code example Example: laravel check auth use Illuminate\Support\Facades\Auth; if (Auth::check()) { // The user is logged in... }