PteroTheme/app/Http/Requests/Api/Client/Servers/Subusers/StoreSubuserRequest.php

23 lines
481 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Subusers;
use Pterodactyl\Models\Permission;
class StoreSubuserRequest extends SubuserRequest
{
public function permission(): string
{
return Permission::ACTION_USER_CREATE;
}
public function rules(): array
{
return [
'email' => 'required|email|between:1,191',
'permissions' => 'required|array',
'permissions.*' => 'string',
];
}
}