addDownload() public static method

public static addDownload ( $file_name )
Beispiel #1
0
 public static function downloadFile($file_name)
 {
     # Add a new download to the file if it's a document
     if (Laralum::isDocument($file_name)) {
         Laralum::addDownload($file_name);
     }
     return response()->download(storage_path('app/' . $file_name));
 }