I have a Geo Location for my google map. In my query, i want to retrieve all possible rows that match to my input type address like (city address) but i dont know how to compare the INPUT to the lat and long column from the database.
scholar_table
id name gender lat long
1 John Male 10.295866 123.889362
2 Joseph Male 10.352621 123.914448
3 Genrevel Female 10.331987 123.91059989999997
///controller
public function address(Request $request){
//sample input CEBU
$scholars = (new Scholar)->newQuery()->select('*');
$scholars->where('gender', '=', Input::get('gender'));
$scholars = $scholars->get();
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2k2zkfW
via IFTTT
Aucun commentaire:
Enregistrer un commentaire