ID -Benutzer anmelden LaRavel
use Auth;
$user_id = Auth::user()->id;
Innocent Ibis
use Auth;
$user_id = Auth::user()->id;
$id = Auth::user()->id;print_r($id);
$userId = Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::id();
Auth::user();
blade file in
{{auth()->user()->id}}