kokokurak said:
Does
Auth::attempt($user)
returntrue
?
Yes, in the login action it return true, but only in the loginAction. If I try something like this after loginAction (using correct username and password) :
Route::get('/users/index',function()
{
return bb($Auth:check())); // This wil return false (no user logged)
})
I've sloved the issue by Adding
protected $primaryKey = 'user_id';
To my User model, because my primary key weren't 'id' so I had to change that
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community