misc_pterodactyl-panel/app/Http/Requests/Api/Application/Users/UpdateUserRequest.php
2021-01-23 12:33:34 -08:00

18 lines
402 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.
*/
public function rules(array $rules = null): array
{
$userId = $this->getModel(User::class)->id;
return parent::rules(User::getRulesForUpdate($userId));
}
}