Deadcode--

This commit is contained in:
Daniel Meltzer 2020-05-23 12:19:44 -04:00
parent 7ea862787c
commit 136df9418f
No known key found for this signature in database
GPG key ID: 91C5C7B09A5B1CA0
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ class SuppliersController extends Controller
* @return \Illuminate\Http\RedirectResponse * @return \Illuminate\Http\RedirectResponse
* @throws \Illuminate\Auth\Access\AuthorizationException * @throws \Illuminate\Auth\Access\AuthorizationException
*/ */
public function update($supplierId = null, ImageUploadRequest $request) public function update($supplierId, ImageUploadRequest $request)
{ {
$this->authorize('update', Supplier::class); $this->authorize('update', Supplier::class);
// Check if the supplier exists // Check if the supplier exists

View file

@ -382,7 +382,7 @@ class UsersController extends Controller
{ {
$this->authorize('update', User::class); $this->authorize('update', User::class);
// Get user information // 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')); return redirect()->route('users.index')->with('error', trans('admin/users/messages.user_not_found'));
} }