Files
services_core/app/Http/Requests/Ticket/ResolveTicketRequest.php
T
2026-08-07 09:16:13 +07:00

32 lines
754 B
PHP

<?php
namespace App\Http\Requests\Ticket;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class ResolveTicketRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'notes' => 'required|string|max:2000',
'stored_file_ids' => ['required','array','min:1'],
'stored_file_ids.*' => ['integer','exists:stored_files,id'],
];
}
}