middleware laravel uses apart from auth code example
Example 1: artisan make auth
composer require laravel/ui
php artisan ui vue --auth
Example 2: authentication in laravel tutorial
laravelAuth
composer require laravel/ui
php artisan ui vue --auth
laravelAuth