public function fill(array $attributes) {
        $locales = Locale\get_locales();

        foreach($locales as $locale => $options)
            if( in_array($locale, array_keys($attributes)) )
                $this->translations[$locale] = array_pull($attributes, $locale);

        return parent::fill($attributes);
    }
public function fill(array $attributes) {
        $locales = Locale\get_locales();

        foreach($locales as $locale => $options)
            if( in_array($locale, array_keys($attributes)) )
                $this->translations[$locale] = array_pull($attributes, $locale);

        return parent::fill($attributes);
    }
public function fill ( array $ attributes ) { $ locales = Locale \ get_locales ( ) ; foreach ( $ locales as $ locale => $ options ) if ( in_array ( $ locale , array_keys ( $ attributes ) ) ) $ this -> translations [ $ locale ] = array_pull ( $ attributes , $ locale ) ; return parent :: fill ( $ attributes ) ; }
Fill attributes and save locales if exists .

@param array $attributes
@return mixed
Fill attributes and save locales if exists .