I use this repository.
But, I don't know how to check if that data exists.
Help me.
All codes error.
Reader::connect()->city($_SERVER["REMOTE_ADDR"]);
Reader::connect()->city($_SERVER["REMOTE_ADDR"])->mostSpecificSubdivision->name;
Reader::connect()->city($request->ip());
Reader::connect()->city($request->ip())->mostSpecificSubdivision->name;
In the first place, an error has occurred at the time of the city function.
check your ip exist use
issetlike below