get id user login laravel
snippet in php

laravel auth user_id

user8323

$userId = Auth::id();

get id user login laravel

user7803

use Auth;
$user_id = Auth::user()->id;