23 lines
477 B
PHP
23 lines
477 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Tenant;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class AiEditIndexRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'status' => ['nullable', 'string', 'max:30'],
|
|
'safety_state' => ['nullable', 'string', 'max:30'],
|
|
'per_page' => ['nullable', 'integer', 'min:1', 'max:50'],
|
|
];
|
|
}
|
|
}
|