This repository has been archived on 2025-05-09. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Astral-nook/app/Http/Requests/Api/Client/Account/StoreApiKeyRequest.php

20 lines
419 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Client\Account;
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
class StoreApiKeyRequest extends ClientApiRequest
{
/**
* @return array
*/
public function rules(): array
{
return [
'description' => 'required|string|min:4',
'allowed_ips' => 'array',
'allowed_ips.*' => 'ip',
];
}
}