Devise\Pages\Fields\DvsMagicMode::liveModel PHP Method

liveModel() protected method

[liveModel description]
protected liveModel ( [type] $value, $attribute, $model ) : [type]
$value [type]
return [type]
    protected function liveModel($value, $attribute, $model)
    {
        $type = get_class($model);
        $id = $model->getKey();
        $key = "{$type}-{$id}-{$attribute}";
        \App::make('dvsPageData')->database($key, $value);
        return "###dvsmagic-{$key}###";
    }