mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 18:11:07 +03:30
fix migrations
This commit is contained in:
@@ -11,6 +11,7 @@ class StoreMedia extends Controller
|
||||
{
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
try {
|
||||
$this->validate($request, [
|
||||
'batch_id' => 'required|max:40',
|
||||
'file' => 'required|mimes:jpeg,jpg,bmp,png,pdf'
|
||||
@@ -29,5 +30,8 @@ class StoreMedia extends Controller
|
||||
['id' => $media->id, 'url' => $media->getUrl()]
|
||||
)
|
||||
);
|
||||
}catch (\Exception $exception){
|
||||
dd($exception);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user