panel_url, '/') ? $this->panel_url : $this->panel_url . '/'; } /** * Summary of validations array * @return array */ public static function getValidations() { return [ 'panel_url' => 'required|string|url', 'admin_token' => 'required|string', 'user_token' => 'required|string', 'per_page_limit' => 'required|integer|min:1|max:10000', ]; } /** * Summary of optionTypes * Only used for the settings page * @return array>> */ public static function getOptionInputData() { return [ 'category_icon' => 'fas fa-server', 'panel_url' => [ 'label' => 'Panel URL', 'type' => 'string', 'description' => 'The URL to your Pterodactyl panel.', ], 'admin_token' => [ 'label' => 'Admin Token', 'type' => 'string', 'description' => 'The admin user token for your Pterodactyl panel.', ], 'user_token' => [ 'label' => 'User Token', 'type' => 'string', 'description' => 'The user token for your Pterodactyl panel.', ], 'per_page_limit' => [ 'label' => 'Per Page Limit', 'type' => 'number', 'description' => 'The number of servers to show per page.', ], ]; } }