user)) { $this->user = new User; $this->user->name = 'Remote User'; $this->user->email = 'fake.email@do.not.use'; } return $this->user; } /** * @inheritDoc */ public function retrieveById($identifier) { $user = $this->getInMemoryUser(); if (Arr::has($identifier, 'user')) { $user->name = $identifier['user']; } if (Arr::has($identifier, 'email')) { $user->email = $identifier['email']; } return $user; } /** * @inheritDoc * * @codeCoverageIgnore */ public function retrieveByToken($identifier, $token) { return $this->retrieveById($identifier); } /** * @inheritDoc * * @codeCoverageIgnore */ public function updateRememberToken(Authenticatable $user, $token) { throw new Exception(sprintf('No implementation for %s', __METHOD__)); } /** * @inheritDoc * * @codeCoverageIgnore */ public function retrieveByCredentials(array $credentials) { return $this->getInMemoryUser(); } /** * @inheritDoc * * @codeCoverageIgnore */ public function validateCredentials(Authenticatable $user, array $credentials) { return true; } }