Fixed failing tests

Fixed syntax error in french translations.
Removed 'required' on image validation which was breaking tests
This commit is contained in:
Dan Brown
2018-03-24 15:25:13 +00:00
parent 5ad9c5d319
commit 3df7d828eb
3 changed files with 4 additions and 3 deletions

View File

@ -120,7 +120,7 @@ class ImageController extends Controller
{
$this->checkPermission('image-create-all');
$this->validate($request, [
'file' => 'required|image'
'file' => 'is_image'
]);
if (!$this->imageRepo->isValidType($type)) {
@ -136,6 +136,7 @@ class ImageController extends Controller
return response($e->getMessage(), 500);
}
return response()->json($image);
}