diff --git a/app/Http/Controllers/SuppliersController.php b/app/Http/Controllers/SuppliersController.php index 20d6beac37..d82dca4d8d 100755 --- a/app/Http/Controllers/SuppliersController.php +++ b/app/Http/Controllers/SuppliersController.php @@ -106,7 +106,7 @@ class SuppliersController extends Controller * @return \Illuminate\Http\RedirectResponse * @throws \Illuminate\Auth\Access\AuthorizationException */ - public function update($supplierId = null, ImageUploadRequest $request) + public function update($supplierId, ImageUploadRequest $request) { $this->authorize('update', Supplier::class); // Check if the supplier exists diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 3c10102560..89f5b51d6f 100755 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -382,7 +382,7 @@ class UsersController extends Controller { $this->authorize('update', User::class); // Get user information - if (!$user = User::onlyTrashed()->find($id)) { + if (!User::onlyTrashed()->find($id)) { return redirect()->route('users.index')->with('error', trans('admin/users/messages.user_not_found')); }