Auth::logout in laravel 8

PHP
use Auth;
$user_id = Auth::user()->id;
composer require laravel/ui

php artisan ui vue --auth

npm install && npm run dev
Source

Also in PHP: