misc_pterodactyl-panel/app/Http/Requests/Api/Application/Users/UpdateUserRequest.php
2018-02-04 15:38:38 -06:00

21 lines
464 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Application\Users;
use Pterodactyl\Models\User;
class UpdateUserRequest extends StoreUserRequest
{
/**
* Return the validation rules for this request.
*
* @param array|null $rules
* @return array
*/
public function rules(array $rules = null): array
{
$userId = $this->getModel(User::class)->id;
return parent::rules(User::getUpdateRulesForId($userId));
}
}