public static function totalBidders($since = 0, $until = null)
    {
        $until = $until ?: time();

        return (int) self::join('bids')
            ->where('placed', '>=', $since)
            ->where('placed', '<=', $until)
            ->count(\DB::raw('DISTINCT(users.user_id)'));
    }
public static function totalBidders($since = 0, $until = null)
    {
        $until = $until ?: time();

        return (int) self::join('bids')
            ->where('placed', '>=', $since)
            ->where('placed', '<=', $until)
            ->count(\DB::raw('DISTINCT(users.user_id)'));
    }
public static function totalBidders ( $ since = 0 , $ until = null ) { $ until = $ until ? : time ( ) ; return ( int ) self :: join ( 'bids' ) -> where ( 'placed' , '>=' , $ since ) -> where ( 'placed' , '<=' , $ until ) -> count ( \ DB :: raw ( 'DISTINCT(users.user_id)' ) ) ; }
Return the total number of users that have placed bids.

@param int $since UNIX timestamp to optionally specify a lower selection boundary.
@param int $until UNIX timestamp to optionally specify an upper selection boundary.

@return int
Return the total number of users that have placed bids .