laravel model get user id code example
Example 1: laravel get auth user id
// Get the currently authenticated user's ID...
$id = Auth::id();
Example 2: how to get the auth id in lravael
$userId = Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::id();
$userId = Auth::id();