18 lines
367 B
PHP
18 lines
367 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Account;
|
|
|
|
use Pterodactyl\Models\ApiKey;
|
|
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
|
|
|
|
class StoreApiKeyRequest extends ClientApiRequest
|
|
{
|
|
public function rules(): array
|
|
{
|
|
$rules = ApiKey::getRules();
|
|
|
|
return [
|
|
'description' => $rules['memo'],
|
|
];
|
|
}
|
|
}
|