src/Tag.php
public function setNameAttribute($value)
    {
        $this->attributes['name'] = json_encode(! is_array($value) ? [app()->getLocale() => $value] : $value);
    }
public function setNameAttribute($value)
    {
        $this->attributes['name'] = json_encode(! is_array($value) ? [app()->getLocale() => $value] : $value);
    }
public function setNameAttribute ( $ value ) { $ this -> attributes [ 'name' ] = json_encode ( ! is_array ( $ value ) ? [ app ( ) -> getLocale ( ) => $ value ] : $ value ) ; }
Set the translatable name attribute.

@param string $value

@return void
Set the translatable name attribute .