misc_pterodactyl-panel/app/Http/Requests/Api/Application/Roles/UpdateRoleRequest.php
2022-12-14 18:04:16 -07:00

13 lines
311 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Application\Roles;
use Pterodactyl\Models\AdminRole;
class UpdateRoleRequest extends StoreRoleRequest
{
public function rules(array $rules = null): array
{
return $rules ?? AdminRole::getRulesForUpdate($this->route()->parameter('role'));
}
}