In Laravel, check login always goes back to the login failure page.
Unsolved
Independent Developers
-
public function check_login(Request $request){ if(Auth::attempt(['email' => $request->email, 'password'=> $request->password])){ $request->session()->regenerateToken(); return redirect("/profile"); } return back()->withErrors(['failed'=>'invalid email and password']); }
-
Hi @Lucky01, this is a forum for users of Qt - a cross-platform C++ framework.
For Laravel (an unrelated PHP web framework), I suggest you try a Laravel user forum, such as Laracasts or Laravel.io.
Cheers.
-
@Paul-Colby thanks this is really helpful