public function getImageUrlAttribute()
    {
        if ($this->exists) {
            $image = $this->image();

            if ($image) {
                return $image->url;
            }

            return config('media.image.default');
        }

        return config('media.image.default');
    }
public function getImageUrlAttribute()
    {
        if ($this->exists) {
            $image = $this->image();

            if ($image) {
                return $image->url;
            }

            return config('media.image.default');
        }

        return config('media.image.default');
    }
public function getImageUrlAttribute ( ) { if ( $ this -> exists ) { $ image = $ this -> image ( ) ; if ( $ image ) { return $ image -> url ; } return config ( 'media.image.default' ) ; } return config ( 'media.image.default' ) ; }
Default image url attribute.

@return string|null
Default image url attribute .