get user connect laravel code example
Example 1: get id user login laravel
use Auth;
$user_id = Auth::user()->id;
Example 2: make authentication in laravel
composer require laravel/ui:^2.4
php artisan ui vue --auth
use Auth;
$user_id = Auth::user()->id;
composer require laravel/ui:^2.4
php artisan ui vue --auth