how to check if user login or not in laravel controller code example
Example: check if logged laravel
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}