mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:31:05 +03:30
fix media
This commit is contained in:
@@ -14,6 +14,7 @@ class MediaHelper
|
||||
]);
|
||||
|
||||
if ($fakeModel = FakeModel::where('batch_id', request('file_batch_id'))->first()) {
|
||||
dd($fakeModel);
|
||||
foreach($fakeModel->getMedia('temp_medias') as $media) {
|
||||
if(substr($media->mime_type, 0, 5) == 'image') {
|
||||
$media->move($model, 'images');
|
||||
|
||||
Reference in New Issue
Block a user