public function download($id)
    {
        $file = LocalFile::getByIdentifier($id);
        return response()->download($file->getAbsolutePath(), $file->getDownloadName());
    }
public function download($id)
    {
        $file = LocalFile::getByIdentifier($id);
        return response()->download($file->getAbsolutePath(), $file->getDownloadName());
    }
public function download ( $ id ) { $ file = LocalFile :: getByIdentifier ( $ id ) ; return response ( ) -> download ( $ file -> getAbsolutePath ( ) , $ file -> getDownloadName ( ) ) ; }
Return a download response for the specified file.

@param  int  $id
@return \Illuminate\Http\Response
Return a download response for the specified file .