add shipping rules
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace App\Repositories\Core;
|
||||
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
use SoftCreatR\MimeDetector\MimeDetector;
|
||||
use SoftCreatR\MimeDetector\MimeDetectorException;
|
||||
|
||||
@@ -32,6 +31,7 @@ class File
|
||||
public static function deleteDir($dir)
|
||||
{
|
||||
Storage::deleteDirectory($dir);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ class File
|
||||
try {
|
||||
return (new MimeDetector())->setFile($file)->getFileType();
|
||||
} catch (MimeDetectorException $e) {
|
||||
die('An error occured while trying to load the given file.');
|
||||
exit('An error occured while trying to load the given file.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user