2021-01-03 23:45:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application\Nests;
|
|
|
|
|
|
|
|
use Pterodactyl\Models\Nest;
|
|
|
|
|
2021-01-08 16:44:05 +00:00
|
|
|
class UpdateNestRequest extends StoreNestRequest
|
2021-01-03 23:45:07 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* ?
|
|
|
|
*
|
|
|
|
* @param array|null $rules
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules(array $rules = null): array
|
|
|
|
{
|
|
|
|
return $rules ?? Nest::getRulesForUpdate($this->route()->parameter('nest')->id);
|
|
|
|
}
|
|
|
|
}
|