Skip to content

Commit ff57007

Browse files
committed
Removed scopeBounding() in favor of scopeIntersects(). Cleaned up unneeded Dockerfile.
1 parent 3aedd97 commit ff57007

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

php.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/Eloquent/SpatialTrait.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ public function scopeDistanceSphereValue($query, $geometry, $column_name)
114114
$query->selectRaw("st_distance_sphere(`{$column_name}`, ST_GeomFromText('{$geometry->toWkt()}')) as distance");
115115
}
116116

117-
public function scopeBounding($query, Geometry $bounds, $column_name)
118-
{
119-
return $query->whereRaw("st_intersects(ST_GeomFromText('{$bounds->toWkt()}'), `{$column_name}`)");
120-
}
121-
122117
public function scopeComparison($query, $geometryColumn, $geometry, $relationship)
123118
{
124119
$query->whereRaw("st_{$relationship}(`{$geometryColumn}`, ST_GeomFromText('{$geometry->toWkt()}'))");

0 commit comments

Comments
 (0)