2018-01-13 20:08:19 +00:00
|
|
|
<?php
|
|
|
|
|
2018-01-20 01:58:57 +00:00
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application\Nodes;
|
2018-01-13 20:08:19 +00:00
|
|
|
|
|
|
|
use Pterodactyl\Models\Node;
|
|
|
|
|
|
|
|
class UpdateNodeRequest extends StoreNodeRequest
|
|
|
|
{
|
|
|
|
public function rules(array $rules = null): array
|
|
|
|
{
|
2021-01-24 01:17:35 +00:00
|
|
|
return parent::rules($rules ?? Node::getRulesForUpdate($this->route()->parameter('node')->id));
|
2018-01-13 20:08:19 +00:00
|
|
|
}
|
|
|
|
}
|