laravel check auth in class start code example
Example 1: laravel authentication
composer require laravel/ui
php artisan ui vue --auth
Example 2: laravel auth namespace
use Illuminate\Support\Facades\Auth;
composer require laravel/ui
php artisan ui vue --auth
use Illuminate\Support\Facades\Auth;