laravel log out trait code example
Example 1: php artisan ui:auth laravel 7
composer require laravel/ui
php artisan ui vue --auth
Example 2: Auth log out laravel
Auth::logout();
composer require laravel/ui
php artisan ui vue --auth
Auth::logout();