Skip to content

Commit

Permalink
Updates readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hutchison committed Feb 29, 2020
1 parent 7b7662b commit d6b0dcb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ interface ScopeDriverInterface
* Should return query instance
*/
public function orWithinDistanceOf(float $lat, float $long, float $distance);

/**
* @param float $lat
* @param float $long
* @param string $orderDirection - asc or desc
* @return mixed
* Should return query instance
*/
public function orderByDistanceFrom(float $lat, float $long, string $orderDirection = 'asc');
}
```
The Query Builder instance is available within your driver via the `$this->query` property.
Expand Down

0 comments on commit d6b0dcb

Please sign in to comment.