Merge branch 'customer' into 'master'

Fix customer email already exist validation when edit customer

See merge request mohit.panjvani/crater-web!71
This commit is contained in:
Mohit Panjwani
2019-11-23 06:42:41 +00:00
4 changed files with 11 additions and 3 deletions

View File

@ -160,6 +160,7 @@ class CustomersController extends Controller
if ($verifyEmail) {
if ($verifyEmail->id !== $customer->id) {
return response()->json([
'success' => false,
'error' => 'Email already in use'
]);
}