authentication laravel basic code example
Example 1: get id user login laravel
use Auth;
$user_id = Auth::user()->id;
Example 2: laravel 8 make:auth
php artisan migrate
npm install && npm run dev
use Auth;
$user_id = Auth::user()->id;
php artisan migrate
npm install && npm run dev