I'd like to do the following:
MyModel::where(MyModel::sql_distance_to(), ['lat' => '...', 'lng' => '...'])->get();
Where sql_distance_to()
returns some complex sql expression. But from what I can see, query builder doesn't support named bindings. Is this true? Any workaround?