isDocument() public static method

public static isDocument ( $file_name )
コード例 #1
0
ファイル: Laralum.php プロジェクト: ConsoleTVs/Laralum
 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));
 }