@msantos you could used redis to do this it will be faster and better no need of models. Check this article I wrote a while ago https://somniotech.com/blog/geospatial-solutions-with-laravel-.... This is the specific function https://redis.io/commands/georadius/
Good luck let me know if I can help with anything.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community