app/MediaFile.php
public function downloadUrl(): string
    {
        return route('media-download', [
            'xref'    => $this->media->xref(),
            'ged'     => $this->media->tree()->name(),
            'fact_id' => $this->fact_id,
        ]);
    }
public function downloadUrl(): string
    {
        return route('media-download', [
            'xref'    => $this->media->xref(),
            'ged'     => $this->media->tree()->name(),
            'fact_id' => $this->fact_id,
        ]);
    }
public function downloadUrl ( ) : string { return route ( 'media-download' , [ 'xref' => $ this -> media -> xref ( ) , 'ged' => $ this -> media -> tree ( ) -> name ( ) , 'fact_id' => $ this -> fact_id , ] ) ; }
Generate a URL to download a non-image media file.

@return string
Generate a URL to download a non - image media file .