Merge pull request #2375 from shivam-webkul/master

#2070 issue fixed
This commit is contained in:
Jitendra Singh 2020-02-11 10:50:51 +05:30 committed by GitHub
commit 9b738f60bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -114,6 +114,11 @@ class SliderController extends Controller
'image.*' => 'sometimes|mimes:jpeg,bmp,png,jpg'
]);
if ( is_null(request()->image)) {
session()->flash('error', trans('admin::app.settings.sliders.update-fail'));
return redirect()->back();
}
$result = $this->sliderRepository->updateItem(request()->all(), $id);
if ($result) {