public function filterI18NColumn()
    {
        $overrideData = array_only($this->attributes, $this->i18n_fillable);
        if (!empty($overrideData)) {
            $this->i18n_data[$this->i18n_default_locale] = $overrideData;
            foreach ($this->i18n_fillable as $key) {
                unset($this->$key);
            }
        }

        if (isset($this->attributes[$this->i18n_attribute_name])) {
            $this->i18n_data = $this->attributes[$this->i18n_attribute_name];
            unset($this->attributes[$this->i18n_attribute_name]);
        }
    }
public function filterI18NColumn()
    {
        $overrideData = array_only($this->attributes, $this->i18n_fillable);
        if (!empty($overrideData)) {
            $this->i18n_data[$this->i18n_default_locale] = $overrideData;
            foreach ($this->i18n_fillable as $key) {
                unset($this->$key);
            }
        }

        if (isset($this->attributes[$this->i18n_attribute_name])) {
            $this->i18n_data = $this->attributes[$this->i18n_attribute_name];
            unset($this->attributes[$this->i18n_attribute_name]);
        }
    }
public function filterI18NColumn ( ) { $ overrideData = array_only ( $ this -> attributes , $ this -> i18n_fillable ) ; if ( ! empty ( $ overrideData ) ) { $ this -> i18n_data [ $ this -> i18n_default_locale ] = $ overrideData ; foreach ( $ this -> i18n_fillable as $ key ) { unset ( $ this -> $ key ) ; } } if ( isset ( $ this -> attributes [ $ this -> i18n_attribute_name ] ) ) { $ this -> i18n_data = $ this -> attributes [ $ this -> i18n_attribute_name ] ; unset ( $ this -> attributes [ $ this -> i18n_attribute_name ] ) ; } }
Filter & remove i18n column from attributes.
Mean, is not save to model self.
Filter & remove i18n column from attributes . Mean is not save to model self .