public function save() { $name = $this->name(); if (\Input::has($name)) { \Input::merge(array($name => password_hash($this->value(), PASSWORD_BCRYPT))); parent::save(); } }
public function save() { $name = $this->name(); if (\Request::has($name)) { if ($this->useSentinel()) { \Request::merge(array($name => password_hash($this->value(), PASSWORD_BCRYPT))); parent::save(); } else { parent::save(); } } }
public function getParams() { return parent::getParams() + ['placement' => $this->placement(), 'addon' => $this->addon()]; }
public function initialize() { parent::initialize(); $this->di->get('assets')->collection('ckEditorFormItemJs')->addJs('backend-assets/ckeditor/ckeditor.js'); }
public function getParams() { return parent::getParams() + ['name' => $this->name(), 'label' => $this->label(), 'readonly' => $this->readonly(), 'value' => $this->value(), 'rows' => $this->rows()]; }
/** * @return array */ public function getParams() { return parent::getParams() + ['name' => $this->getName(), 'label' => $this->getLabel(), 'readonly' => $this->isReadonly(), 'value' => $this->getValue(), 'rows' => $this->getRows()]; }