Massivly simplify notes index controller method

This commit is contained in:
Jonny Barnes 2017-06-22 14:30:10 +01:00
parent 36cf131839
commit 0c62e558ec
5 changed files with 200 additions and 197 deletions

View file

@ -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.
*