This commit is contained in:
mahdi purHosseini
2023-12-10 10:44:01 +03:30
parent d92976d071
commit 146c19e34a
+1 -1
View File
@@ -15,8 +15,8 @@ class MediaHelper
if ($fakeModel = FakeModel::where('batch_id', request('file_batch_id'))->first()) {
foreach($fakeModel->getMedia('temp_medias') as $media) {
dd(substr($media->mime_type, 0, 5));
if(substr($media->mime_type, 0, 5) == 'image') {
dd($model,$media);
$media->move($model, 'images');
} else {
$media->move($model, 'files');