/** * @param User $user * @return bool */ public function reminding(User $user) { if (!$user->isPlayer()) { return false; } return AuctionReminder::where('auction_id', $this->id)->where('player_id', $user->player_id)->get()->count() != 0; }