Obtenir l'identifiant de connexion Laravel
use Auth;
$user_id = Auth::user()->id;
Innocent Ibis
use Auth;
$user_id = Auth::user()->id;
use Illuminate\Support\Facades\Auth;
// Get the currently authenticated user's ID...
$id = Auth::id();
auth()->id()