misc_pterodactyl-panel/app/Http/Requests/Admin/Node/AllocationAliasFormRequest.php

17 lines
371 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Http\Requests\Admin\Node;
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
class AllocationAliasFormRequest extends AdminFormRequest
{
public function rules(): array
{
return [
2017-11-11 03:47:43 +00:00
'alias' => 'present|nullable|string',
'allocation_id' => 'required|numeric|exists:allocations,id',
];
}
}