get user info larval code example
Example 1: get logged user id laravel
$id = Auth::user()->id;print_r($id);
Example 2: how to get the auth id in lravael
$userId = Auth::id();
$id = Auth::user()->id;print_r($id);
$userId = Auth::id();