check if logged laravel

PHP
use Illuminate\Support\Facades\Auth;

if (Auth::check()) {
    // The user is logged in...
}
Source

Also in PHP: