UnDefined Variable Issue Resolved

Undefined Variable $customerRepository resolved now!!
This commit is contained in:
JunaidJaved8461 2020-10-09 10:32:47 +05:00 committed by GitHub
parent 340f51cd63
commit ea6d36d776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -115,11 +115,11 @@ class SessionController extends Controller
$data['password'] = bcrypt($data['password']);
}
$customerRepository->update($data, $customer->id);
$this->customerRepository->update($data, $customer->id);
return response()->json([
'message' => 'Your account has been updated successfully.',
'data' => new CustomerResource($customerRepository->find($customer->id)),
'data' => new CustomerResource($this->customerRepository->find($customer->id)),
]);
}