Jan 11, 2018
0
Level 7
Spark redirect to login after registration doesn't work
Such a simple thing wont work!
After registration, there is simple redirect
return redirect($this->redirectPath('/login'));
It keeps giving me 404 "sorry..." error page and in the URL it shows myapp/undefined
Spark routes.php:
$router->get('/login', 'Auth\LoginController@showLoginForm')->name('login');
In that function LoginController@showLoginForm I have put a log message and that is working correctly! The Spark function simply says
return view('spark::auth.login');
But 404 ?? What the heck is happening
Please or to participate in this conversation.