how use basic auth in laravel code example Example: laravel auth //laravel 8.x //for bootstrap scafolding php artisan ui bootstrap --auth