Laravel-Geographical
Laravel-Geographical copied to clipboard
Add support for joined tables
Added support for joined tables, such as in my use case where I have a restaurant model with multiple locations, and want to query against the restaurants model with the locations joined in. This is done by adding an optional array as a third parameter to the distance method, which allows you to set the table name and the column names to use (which may be skipped in favor of the defaults).