2018-02-27 21:28:43 -06:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2018-02-27 21:28:43 -06:00
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client;
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
use Illuminate\Validation\Rule;
|
|
|
|
|
|
2018-02-27 21:28:43 -06:00
|
|
|
class GetServersRequest extends ClientApiRequest
|
|
|
|
|
{
|
|
|
|
|
public function authorize(): bool
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2026-10-05 18:10:18 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return ValidationRules
|
|
|
|
|
*/
|
|
|
|
|
public function rules(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'type' => ['sometimes', 'nullable', 'string', Rule::in(['owner', 'admin', 'admin-all'])],
|
|
|
|
|
];
|
|
|
|
|
}
|
2018-02-27 21:28:43 -06:00
|
|
|
}
|