Laravel Custom Authentication with Postgres

0

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?

    
asked by anonymous 04.12.2018 / 13:01

0 answers