Refactor the City and its tests.

This commit is contained in:
2023-08-15 13:15:24 +03:00
parent 6db3465407
commit 394f821d35
3 changed files with 40 additions and 3 deletions
@@ -120,7 +120,7 @@ class CartController extends Controller
return response()->json($validation);
// check for not valid city
$validation = City::validate_with_name($cityName);
$validation = City::validateWithName($cityName);
if(array_key_exists('error', $validation))
return response()->json($validation);