Question: how to calculate distance between two latitude and longitude in laravel?
Answer: $latitude = 51.0258761; $longitude = 4.4775362; $radius = 20000; $products = Product::with('user') ->selectRaw("*, ( 6371 * acos( cos( radians(" . $latitude .