check condition for auth user in model laravel code example
Example 1: how to check if there is an authenticated user laravel
if (Auth::check()) { // The user is logged in... }
Example 2: laravel check auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}