mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 21:04:44 +02:00

* Add Nullable * Edit filament & AppServiceProvider * Pint * Patch tests * Actually patching tests * Actually patching tests * Remove length * Remove defaultStringLength * Let’s see the differences --------- Co-authored-by: Lance Pioch <git@lance.sh>
18 lines
400 B
PHP
18 lines
400 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin\Node;
|
|
|
|
use App\Http\Requests\Admin\AdminFormRequest;
|
|
|
|
class AllocationFormRequest extends AdminFormRequest
|
|
{
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'allocation_ip' => 'required|string',
|
|
'allocation_alias' => 'sometimes|nullable|string|max:255',
|
|
'allocation_ports' => 'required|array',
|
|
];
|
|
}
|
|
}
|