z-song/laravel-admin · error · Exception
To use captcha field, please install [mews/captcha] first.
Error message
To use captcha field, please install [mews/captcha] first.
What it means
Error "To use captcha field, please install [mews/captcha] first." thrown in z-song/laravel-admin.
Source
Thrown at src/Form/Field/Captcha.php:16
<?php
namespace Encore\Admin\Form\Field;
use Encore\Admin\Form;
class Captcha extends Text
{
protected $rules = 'required|captcha';
protected $view = 'admin::form.captcha';
public function __construct($column, $arguments = [])
{
if (!class_exists(\Mews\Captcha\Captcha::class)) {
throw new \Exception('To use captcha field, please install [mews/captcha] first.');
}
$this->column = '__captcha__';
$this->label = trans('admin.captcha');
}
public function setForm(Form $form = null)
{
$this->form = $form;
$this->form->ignore($this->column);
return $this;
}
public function render()
{
$this->script = <<<EOTView on GitHub (pinned to 67c441eb78)
When it happens
Trigger: Thrown at src/Form/Field/Captcha.php:16 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of z-song/laravel-admin@67c441eb78 (2026-08-21).
Data as JSON: /api/errors/d4b7701d5233cee2.
Report an issue: GitHub.