except('role', 'status'); // If password is not provided, then we will // just remove it from $data array and do not change it if (! data_get($data, 'password')) { unset($data['password']); unset($data['password_confirmation']); } $this->users->update(auth()->id(), $data); return redirect()->route('profile') ->withSuccess(__('Login details updated successfully.')); } }