add shipping rules

This commit is contained in:
Ludovic CANDELLIER
2023-07-16 14:45:42 +02:00
parent 297dcc62d2
commit 39c80ce6d1
459 changed files with 6219 additions and 5416 deletions

View File

@@ -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.');
}
}
}