feat(scanner): implement scan attempt tracking with new request and resource classes

This commit is contained in:
2026-09-07 16:55:52 -03:00
parent 193e10dc48
commit 8a65d358a4
6 changed files with 87 additions and 78 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Domains\Ticket\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ScanAttemptIndexRequest 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'],
];
}
}