Add base support for creating a new API key for an account

This commit is contained in:
Dane Everitt
2020-03-22 18:15:38 -07:00
parent 32f25170f1
commit 933a4733e8
17 changed files with 371 additions and 13 deletions

View File

@@ -0,0 +1,20 @@
<?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',
];
}
}