I think that Laravel Spark uses register as a named route in its Vendor route.php file. Try changing the name register to something more bespoke. Or just get rid of the name on your new route all together.
Jun 26, 2019
2
Level 3
Change Spark's registration route
The app I'm building is nearing a beta, and what I'd like to do is redirect users that reach the registration page to a page about the beta (success, on that front). However, I'd still like the registration page to be available, but under something like /register-early-access.
In the Spark source, I have:
$router->get('/register', 'Auth\RegisterController@showRegistrationForm')->name('register');
In my web.php I tried:
Route::get('/register-early-access', 'Auth\RegisterController@showRegistrationForm')->name('register');
and got the following error: View [auth.register] not found.
Can someone help me out and/or recommend a better way to achieve the goal of providing a subset of users with the registration page (without making a mess of the Spark source files)?
Please or to participate in this conversation.