use Illuminate\Support\Facades\Auth; if (Auth::check()) { // The user is logged in... }
Auth::login($user);