0
I have changed the table and the Laravel Breeze fields for authentication to some custom ones. It looks fine but in AuthenticatedSessionController.php
while I get Auth::Check() == true
when it executes return redirect()->intended(RouteServiceProvider::HOME);
I get redirected to login page without any error message.
AuthenticatedSessionController.php
public function store(LoginRequest $request)
{
$request->authenticate();
$request->session()->regenerate();
//Auth::Check() == true here I get true.
return redirect()->intended(RouteServiceProvider::HOME);
}
I have only modified $user->getAuthPassword
to return the new field for password and the protected $table
variable (and fillables
) in user model
to show the new table.
0 comments:
Post a Comment
Thanks