user(); return $user?->hasPurchasedCertification() === true && $user->account_verified_at === null; } public function rules(): array { return [ 'document' => [ 'required', File::types(['jpg', 'jpeg', 'png', 'pdf'])->max('10mb'), 'mimetypes:image/jpeg,image/png,application/pdf', ], ]; } public function messages(): array { return [ 'document.required' => __('api.certification.document_required'), 'document.mimetypes' => __('api.certification.document_type'), 'document.max' => __('api.certification.document_max'), ]; } }