change withUser to laravel code example Example: laravel auth //laravel 8.x //for bootstrap scafolding php artisan ui bootstrap --auth