13 lines
320 B
PHP
13 lines
320 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application\Users;
|
|
|
|
use Pterodactyl\Models\User;
|
|
|
|
class UpdateUserRequest extends StoreUserRequest
|
|
{
|
|
public function rules(array $rules = null): array
|
|
{
|
|
return parent::rules($rules ?? User::getRulesForUpdate($this->route()->parameter('user')->id));
|
|
}
|
|
}
|