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

26 lines
572 B
PHP
Raw Normal View History

<?php
2018-11-20 05:03:03 +00:00
namespace Pterodactyl\Http\Requests\Api\Application\Locations;
use Pterodactyl\Models\Location;
use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
class StoreLocationRequest extends ApplicationApiRequest
{
public function rules(): array
{
return collect(Location::getRules())->only([
'long',
'short',
])->toArray();
}
public function attributes(): array
{
return [
'long' => 'Location Description',
'short' => 'Location Identifier',
];
}
}