protected function getEmbeddedData()
    {
        if ($old = old($this->column)) {
            return $old;
        }

        if (empty($this->value)) {
            return [];
        }

        if (is_string($this->value)) {
            return json_decode($this->value, true);
        }

        return (array) $this->value;
    }
protected function getEmbeddedData()
    {
        if ($old = old($this->column)) {
            return $old;
        }

        if (empty($this->value)) {
            return [];
        }

        if (is_string($this->value)) {
            return json_decode($this->value, true);
        }

        return (array) $this->value;
    }
protected function getEmbeddedData ( ) { if ( $ old = old ( $ this -> column ) ) { return $ old ; } if ( empty ( $ this -> value ) ) { return [ ] ; } if ( is_string ( $ this -> value ) ) { return json_decode ( $ this -> value , true ) ; } return ( array ) $ this -> value ; }
Get data for Embedded form.

Normally, data is obtained from the database.

When the data validation errors, data is obtained from session flash.

@return array
Get data for Embedded form .