misc_pterodactyl-panel/app/Http/Requests/Api/Application/Users/UpdateUserRequest.php

14 lines
316 B
PHP
Raw Normal View History

<?php
2018-01-20 01:58:57 +00:00
namespace Pterodactyl\Http\Requests\Api\Application\Users;
use Pterodactyl\Models\User;
class UpdateUserRequest extends StoreUserRequest
{
2018-02-04 21:38:38 +00:00
public function rules(array $rules = null): array
{
2022-12-15 01:04:16 +00:00
return parent::rules($rules ?? User::getRulesForUpdate($this->route()->parameter('user')));
}
}