diff --git a/src/Zizaco/Confide/ConfideEloquentRepository.php b/src/Zizaco/Confide/ConfideEloquentRepository.php index e732fb2..0af4352 100644 --- a/src/Zizaco/Confide/ConfideEloquentRepository.php +++ b/src/Zizaco/Confide/ConfideEloquentRepository.php @@ -133,14 +133,16 @@ public function getUserByIdentity( $credentials, $identityColumns = array('email } if($hasWhere) - { - $user = $user->get(); - } + { + $user = $user->get(); - if(! empty($user)) { - return $user->first(); - } + if(! empty($user)) + { + return $user->first(); + } + } + return null; }