{"record":{"id":"d4b7701d5233cee2","repo":"z-song/laravel-admin","slug":"to-use-captcha-field-please-install-mews-captcha","errorCode":null,"errorMessage":"To use captcha field, please install [mews/captcha] first.","messagePattern":"To use captcha field, please install \\[mews/captcha\\] first\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/Form/Field/Captcha.php","lineNumber":16,"sourceCode":"<?php\n\nnamespace Encore\\Admin\\Form\\Field;\n\nuse Encore\\Admin\\Form;\n\nclass Captcha extends Text\n{\n    protected $rules = 'required|captcha';\n\n    protected $view = 'admin::form.captcha';\n\n    public function __construct($column, $arguments = [])\n    {\n        if (!class_exists(\\Mews\\Captcha\\Captcha::class)) {\n            throw new \\Exception('To use captcha field, please install [mews/captcha] first.');\n        }\n\n        $this->column = '__captcha__';\n        $this->label = trans('admin.captcha');\n    }\n\n    public function setForm(Form $form = null)\n    {\n        $this->form = $form;\n\n        $this->form->ignore($this->column);\n\n        return $this;\n    }\n\n    public function render()\n    {\n        $this->script = <<<EOT","sourceCodeStart":1,"sourceCodeEnd":34,"githubUrl":"https://github.com/z-song/laravel-admin/blob/67c441eb78ecc5437e59775d89770cd9c2cb1e05/src/Form/Field/Captcha.php#L1-L34","documentation":"Error \"To use captcha field, please install [mews/captcha] first.\" thrown in z-song/laravel-admin.","triggerScenarios":"Thrown at src/Form/Field/Captcha.php:16 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"67c441eb78ecc5437e59775d89770cd9c2cb1e05","analyzedAt":"2026-08-21T02:51:03.143Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}