Answer the question
In order to leave comments, you need to log in
Routing Route [login] not defined?
Hello,
There was a problem...
According to my idea, everything should go like this: if a person is not registered, he gets a modal window with a message, but I end up with a Laravel error.
Route::prefix('user')->group(function () {
Route::post('login', 'Auth\[email protected]');
Route::get('logout', 'Auth\[email protected]')->name('logout');
Route::post('register', 'Auth\[email protected]')->name('registration');
Route::get('email/verify/{id}', 'Auth\[email protected]')->name('verification.verify');
Route::get('email/resend', 'Auth\[email protected]')->name('verification.resend');
Route::post('password/reset', 'Auth\[email protected]')->name('password.update');
});
if(!Auth::check())
return back()->withErrors('Необходимо авторизоваться, перед открытием личного кабинета!');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question