24 lines
538 B
PHP
24 lines
538 B
PHP
<?php
|
|
|
|
namespace App\Domains\Ticket\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ScannerTicketIndexRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/** @return array<string, list<string>> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'q' => ['sometimes', 'nullable', 'string', 'max:255'],
|
|
'page' => ['sometimes', 'integer', 'min:1'],
|
|
'per_page' => ['sometimes', 'integer', 'min:1', 'max:100'],
|
|
];
|
|
}
|
|
}
|