示例#1
0
 public function hasbetted($id64)
 {
     $op = UserItem::where('match_id', '=', $this->id)->where('steamid64', '=', $id64)->get();
     if ($op->count() > 0) {
         return $op;
     } else {
         return false;
     }
 }
示例#2
0
 public function pending()
 {
     $pending = UserItem::where('steamid64', '=', Auth::user()->steamid64)->where('steamid64_bot', '=', $this->steamid64)->where('status', '=', 1)->get();
     return $pending->count();
 }