I created a custom
provider
, called CustomUserProvider
, extended from EloquentUserProvider
and brought the fields perfectly.
But login does not persist
public function validateCredentials(UserContract $user, array $credentials)
{
$plain = $credentials['ususenha'];
if ($plain == $this->hash($user->getAuthPassword())) {
dd('Foi');
return true;
}
return false;
}
In this code it drops there in dd('Foi')
but does not log in and I tested it using MySQL
and it worked, using MySQL
works, but Postgres
does not work.
How do I solve this problem?