@matheusronanabel What does your User model look like?
Dec 1, 2023
5
Level 1
Credentials are correct but it redirects to login.
Hi, I'm currently building a Laravel application with breeze. I've done some modifications with the users table, and I'm using Uuid as the primary key of that users table.
Here's my authentication store method. It sits on the auth.php route files.
public function store(LoginRequest $request): RedirectResponse
{
$request->authenticate();
$request->session()->regenerate();
// dd(session()->all());
return redirect()->intended(RouteServiceProvider::HOME);
}
When I dd or die dump the session, it shows me the _session or the token.
return $request->expectsJson() ? null : route('login');
I assume this functions expects a json, and since I'm always redirected to login, I assume that it doesn't generate any json.
Please or to participate in this conversation.