Sagynbek Kenzhebaev
Sagynbek Kenzhebaev

Reputation: 360

Laravel cant get controller from route

I have been working on a project and needed to add a feature for resetting a password. I added Laravels build-in feature php artisan make:auth, but these controllers in Controllers/Auth don't work on this project.

InvalidArgumentException in UrlGenerator.php line 304: Route [home] not defined.

Maybe unconsciously I have modified something so that it automatically redirects me to route('home'), I don't need home route to be rendered, I need it to reach those controllers in Controllers\Auth directory

Any help will be appreciated, thanks in advance

Upvotes: 0

Views: 173

Answers (1)

dparoli
dparoli

Reputation: 9161

in the App\Http\Controllers\Auth\ResetPasswordController change that property as you wish:

protected $redirectTo = '/home';

Upvotes: 1

Related Questions