misc_pterodactyl-panel/app/Http/Requests/Api/Client/Account/StoreApiKeyRequest.php

16 lines
374 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Client\Account;
use Pterodactyl\Models\PersonalAccessToken;
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
class StoreApiKeyRequest extends ClientApiRequest
{
public function rules(): array
{
return [
'description' => PersonalAccessToken::getRules()['description'],
];
}
}