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

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

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

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

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