feedback = $feedback; } public function validate(string $attribute, mixed $value, Closure $fail): void { if ($value !== 'closed') { return; } $fileService = App::make(FileService::class); if (! $fileService->hasCollection($this->feedback, 'proof_of_resolution')) { $fail(__('Yêu cầu cung cấp tài liệu bằng chứng để hoàn tất quy trình.')); } } }