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(__('feedback.proof_required')); } } }