Use root namespace for Exception in catch block

This commit is contained in:
Ben Thomson 2020-04-05 00:55:35 +08:00
parent 4f7e2995c7
commit c7ba577fae
No known key found for this signature in database
GPG Key ID: E2B9C73B52D15AA0
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ trait UploadableWidget
'link' => MediaLibrary::url($filePath),
'result' => 'success'
]);
} catch (Exception $ex) {
} catch (\Exception $ex) {
$response = Response::make($ex->getMessage(), 400);
}