src/InterfaceBuilder/Forms/AbstractFormField.php
/**
     * Determines how the field is saved to a model.
     *
     * @param \Illuminate\Database\Eloquent\Model $model
     * @param \Illuminate\Http\Request            $request
     *
     * @return \Soda\Cms\InterfaceBuilder\Forms\Fields\FormFieldInterface
     */
Determines how the field is saved to a model.


Determines how the field is saved to a model .
public function saveToModel(Model $model, Request $request)
    {
        $this->setModel($model);
        $model->setAttribute($this->getFieldName(), $this->getSaveValue($request));
        return $this;
    }
public function saveToModel ( Model $ model , Request $ request ) { $ this -> setModel ( $ model ) ; $ model -> setAttribute ( $ this -> getFieldName ( ) , $ this -> getSaveValue ( $ request ) ) ; return $ this ; }
Determines how the field is saved to a model.
Determines how the field is saved to a model .