Eloquent\Dialect\Json::inspectJsonColumns PHP Метод

inspectJsonColumns() публичный Метод

Decodes each of the declared JSON attributes and records the attributes on each.
public inspectJsonColumns ( )
    public function inspectJsonColumns()
    {
        foreach ($this->jsonColumns as $col) {
            if (!$this->showJsonColumns) {
                $this->hidden[] = $col;
            }
            $obj = json_decode($this->{$col});
            if (is_object($obj)) {
                foreach ($obj as $key => $value) {
                    $this->flagJsonAttribute($key, $col);
                    if ($this->showJsonAttributes) {
                        $this->appends[] = $key;
                    }
                }
            }
        }
    }