Obtener ID de inicio de sesión del usuario Laravel
use Auth;
$user_id = Auth::user()->id;
Innocent Ibis
use Auth;
$user_id = Auth::user()->id;
$userId = Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::id();