src/Chronos/Content/app/Models/ContentField.php
public function getValuesAttribute()
    {
        if ($this->attributes['data'] == '' || $this->attributes['type'] != 'list')
            return null;

        $data = unserialize($this->attributes['data']);

        if (!isset($data['values']))
            return null;
        else {
            return $data['values'];
        }
    }
public function getValuesAttribute()
    {
        if ($this->attributes['data'] == '' || $this->attributes['type'] != 'list')
            return null;

        $data = unserialize($this->attributes['data']);

        if (!isset($data['values']))
            return null;
        else {
            return $data['values'];
        }
    }
public function getValuesAttribute ( ) { if ( $ this -> attributes [ 'data' ] == '' || $ this -> attributes [ 'type' ] != 'list' ) return null ; $ data = unserialize ( $ this -> attributes [ 'data' ] ) ; if ( ! isset ( $ data [ 'values' ] ) ) return null ; else { return $ data [ 'values' ] ; } }
Add values to model.
Add values to model .