first(); // if (null === $user) { // $user = User::create( // [ // 'name' => $identifier, // 'email' => $identifier, // 'password' => bcrypt(Str::random(64)), // ] // ); // } return $user; } /** * @inheritDoc */ public function retrieveByToken($identifier, $token) { throw new Exception(sprintf('No implementation for %s', __METHOD__)); } /** * @inheritDoc */ public function updateRememberToken(Authenticatable $user, $token) { throw new Exception(sprintf('No implementation for %s', __METHOD__)); } /** * @inheritDoc */ public function retrieveByCredentials(array $credentials) { throw new Exception(sprintf('No implementation for %s', __METHOD__)); } /** * @inheritDoc */ public function validateCredentials(Authenticatable $user, array $credentials) { throw new Exception(sprintf('No implementation for %s', __METHOD__)); } }