コード例 #1
0
 /**
  * @return mixed
  */
 public function getCurrentlyOnlineUsers($current_user_id)
 {
     $now = new \Carbon\Carbon();
     return $this->user_model->where('id', '!=', $current_user_id)->where('last_seen', '>', $now->subMinutes(30))->take(10)->orderBy('last_seen', 'desc')->get();
 }