$salons = Salon::select(\'salons.*\') ->selectRaw(\'( 6371* acos( cos( radians(?) ) * cos( radians( lat ) ) * cos( radians(
for obtaining the km you should use 111.045 km per degree (as an approximation)
km
111.045 km
( 111.045 * acos( cos( radians(?) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(?) ) + sin( radians(?) ) * sin( radians( lat ) ) ) )