When you say custom table, what do you mean?
show us how you handle your user login and we can pinpoint where you need to start a session
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using LARAVEL 5.2
I am doing user authentication using a custom table. I am able to login successfully as when I do in AuthController.php
public function authenticated(Request $request, $user)
{
dd($user);
}
I am getting the user details.
But when I access some other route and in the respective controller when I do
dd(Auth::user()) returns null
dd(session()->all()) returns _token
dd(Auth::check()) returns false
What am I doing wrong? How could I create user session? Any help appreciated! Thanks!
Please or to participate in this conversation.