src/Models/Assets/CharacterAsset.php
public function getNameAttribute($value)
    {

        if (! $this->type)
            return null;

        if (is_null($value) || $value == '')
            return $this->type->typeName;

        return $value;
    }
public function getNameAttribute($value)
    {

        if (! $this->type)
            return null;

        if (is_null($value) || $value == '')
            return $this->type->typeName;

        return $value;
    }
public function getNameAttribute ( $ value ) { if ( ! $ this -> type ) return null ; if ( is_null ( $ value ) || $ value == '' ) return $ this -> type -> typeName ; return $ value ; }
Allow us to call CharacterAsset->name.

@param $value

@return string
Allow us to call CharacterAsset - > name .