Format your code properly. Anyway:
->where('distance_in_mi <= r') // won't work
//instead
->whereRaw('distance_in_mi <= r')
//or
->where('distance_in_mi', '<=', 'r')
Thanks, that was one problem. Still looking at the formatting which is throwing an error in NetBeans.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community