Uzyskaj zalogowany identyfikator użytkownika Laravel
$id = Auth::user()->id;print_r($id);
Proud Pigeon
$id = Auth::user()->id;print_r($id);
// Get the currently authenticated user's ID...
$id = Auth::id();
Auth::user();
use Illuminate\Support\Facades\Auth;
// Retrieve the currently authenticated user...
$user = Auth::user();
// Retrieve the currently authenticated user's ID...
$id = Auth::id();