Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $people = DB::table('people')
  2. ->where('people.id', $people_id)
  3. ->select('people.id', 'people.latitude', 'people.longitude')
  4. ->first();
  5.  
  6. $people->latitude = $latitude;
  7. $people->longitude = $longitude;
  8. $people->save();
  9.  
  10. DB::table('users')
  11. ->where('id', 1)
  12. ->update(array('votes' => 1));
  13.  
  14. DB::table('people')
  15. ->where('id', $people_id)
  16. ->update(array('latitude'=>$latitude,'longitude'=>$longitude));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement