misc_pterodactyl-panel/app/Http/Requests/Api/Application/Locations/UpdateLocationRequest.php
2022-12-14 17:05:46 -07:00

18 lines
416 B
PHP

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