Fix response code of multiple upload
This commit is contained in:
parent
e9975e9c5a
commit
9870ac8bab
|
@ -66,7 +66,7 @@ class MediaController
|
|||
|
||||
$collection->runCallback('after', $model->fresh());
|
||||
|
||||
return $isSingle ? MediaData::from($medias->first()) : MediaData::collect($medias);
|
||||
return $isSingle ? MediaData::from($medias->first()) : response(MediaData::collect($medias), 201);
|
||||
}
|
||||
|
||||
protected function storeDeferred(Request $request)
|
||||
|
|
Loading…
Reference in New Issue