public function getByIpv4Range($ipMin, $ipMax = Settings::IP_MAX, int $trackableType = Tracker::TRACKER_ANY, int $perPage = 15) : LengthAwarePaginator
    {
        $min = $this->getLongIp($ipMin);
        $max = $this->getLongIp($ipMax);

        return $this->getModel()
                    ->newQuery()
                    ->whereBetween('ipv4', [ $min, $max ])
                    ->where($this->typeClosure($trackableType))
                    ->paginate($perPage);
    }
public function getByIpv4Range($ipMin, $ipMax = Settings::IP_MAX, int $trackableType = Tracker::TRACKER_ANY, int $perPage = 15) : LengthAwarePaginator
    {
        $min = $this->getLongIp($ipMin);
        $max = $this->getLongIp($ipMax);

        return $this->getModel()
                    ->newQuery()
                    ->whereBetween('ipv4', [ $min, $max ])
                    ->where($this->typeClosure($trackableType))
                    ->paginate($perPage);
    }
public function getByIpv4Range ( $ ipMin , $ ipMax = Settings :: IP_MAX , int $ trackableType = Tracker :: TRACKER_ANY , int $ perPage = 15 ) : LengthAwarePaginator { $ min = $ this -> getLongIp ( $ ipMin ) ; $ max = $ this -> getLongIp ( $ ipMax ) ; return $ this -> getModel ( ) -> newQuery ( ) -> whereBetween ( 'ipv4' , [ $ min , $ max ] ) -> where ( $ this -> typeClosure ( $ trackableType ) ) -> paginate ( $ perPage ) ; }
Get tracks by IPv4 range

@param string|int $ipMin
@param string|int $ipMax
@param int        $trackableType
@param int        $perPage
@return \Illuminate\Contracts\Pagination\LengthAwarePaginator
Get tracks by IPv4 range