laravel where is auth guard code code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: laravel auth
//namespace
use Illuminate\Support\Facades\Auth;
$userId = Auth::id();
//namespace
use Illuminate\Support\Facades\Auth;