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

26 lines
511 B
PHP

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