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 = <<column}-captcha').click(function () { $(this).attr('src', $(this).attr('src')+'?'+Math.random()); }); JS; return parent::render(); } }