container->make(UserRepositoryInterface::class); try { $this->userModel = $repository->findFirstWhere([ ['external_id', '=', $this->route()->parameter('external_id')], ]); } catch (RecordNotFoundException $exception) { return false; } return true; } /** * Return the user model for the requested external user. * * @return \Pterodactyl\Models\User */ public function getUserModel(): User { return $this->userModel; } }