Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $people = DB::table('people')
- ->where('people.id', $people_id)
- ->select('people.id', 'people.latitude', 'people.longitude')
- ->first();
- $people->latitude = $latitude;
- $people->longitude = $longitude;
- $people->save();
- DB::table('users')
- ->where('id', 1)
- ->update(array('votes' => 1));
- DB::table('people')
- ->where('id', $people_id)
- ->update(array('latitude'=>$latitude,'longitude'=>$longitude));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement