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