2018-01-13 02:39:15 +00:00
|
|
|
<?php
|
|
|
|
|
2018-11-20 05:03:03 +00:00
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application\Locations;
|
2018-01-13 02:39:15 +00:00
|
|
|
|
|
|
|
use Pterodactyl\Models\Location;
|
2018-01-20 03:47:06 +00:00
|
|
|
use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
|
2018-01-13 02:39:15 +00:00
|
|
|
|
2018-01-20 03:47:06 +00:00
|
|
|
class StoreLocationRequest extends ApplicationApiRequest
|
2018-01-13 02:39:15 +00:00
|
|
|
{
|
|
|
|
public function rules(): array
|
|
|
|
{
|
2019-09-05 05:26:28 +00:00
|
|
|
return collect(Location::getRules())->only([
|
2018-01-13 02:39:15 +00:00
|
|
|
'long',
|
|
|
|
'short',
|
|
|
|
])->toArray();
|
|
|
|
}
|
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
public function attributes(): array
|
2018-01-13 02:39:15 +00:00
|
|
|
{
|
|
|
|
return [
|
|
|
|
'long' => 'Location Description',
|
|
|
|
'short' => 'Location Identifier',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|