misc_pterodactyl-panel/app/Http/Requests/Api/Application/Locations/UpdateLocationRequest.php

19 lines
416 B
PHP
Raw Normal View History

<?php
2018-01-20 01:58:57 +00:00
namespace Pterodactyl\Http\Requests\Api\Application\Locations;
use Pterodactyl\Models\Location;
class UpdateLocationRequest extends StoreLocationRequest
{
public function rules(): array
{
2022-12-15 00:05:46 +00:00
$locationId = $this->route()->parameter('location')->id;
return collect(Location::getRulesForUpdate($locationId))->only([
'short',
'long',
])->toArray();
}
}