Massivly simplify notes index controller method
This commit is contained in:
parent
36cf131839
commit
0c62e558ec
5 changed files with 200 additions and 197 deletions
|
@ -76,19 +76,6 @@ class Place extends Model
|
|||
return $query->where($field, '<=', $distance)->orderBy($field);
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert location to text.
|
||||
*
|
||||
* @param text $value
|
||||
* @return text
|
||||
*
|
||||
public function getLocationAttribute($value)
|
||||
{
|
||||
$result = DB::select(DB::raw("SELECT ST_AsText('$value')"));
|
||||
|
||||
return $result[0]->st_astext;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Get the latitude from the `location` property.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue