You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @NickSun. The code you attached doesn't reproduce the error. There's a chance you are not doing something correctly.
Please fork this repo and add a failing test. It will help me to debug the issue and fix it.
Laravel: 10.1.5
matanyadaev/laravel-eloquent-spatial: 3.1.2
Query example:
Users::whereDistanceSphere('location', $user->location, '<', 20)->get()
Error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'distance_sphere' in 'where clause' (Connection: mysql, SQL: select * from `users` where `distance_sphere` = location)
What do I do wrong?
The text was updated successfully, but these errors were encountered: