public function getVisitsCountFromCurrentIP($timeWindow)
    {
        $timeWindow = (int) $timeWindow;
        $ipControlLog = $this->app->make(IPControlLog::class);

        return $ipControlLog->countVisits('api', new DateTime("-$timeWindow seconds"));
    }
public function getVisitsCountFromCurrentIP($timeWindow)
    {
        $timeWindow = (int) $timeWindow;
        $ipControlLog = $this->app->make(IPControlLog::class);

        return $ipControlLog->countVisits('api', new DateTime("-$timeWindow seconds"));
    }
public function getVisitsCountFromCurrentIP ( $ timeWindow ) { $ timeWindow = ( int ) $ timeWindow ; $ ipControlLog = $ this -> app -> make ( IPControlLog :: class ) ; return $ ipControlLog -> countVisits ( 'api' , new DateTime ( "-$timeWindow seconds" ) ) ; }
Get the number of visits from the current IP address since a determined number of seconds ago.

@param int $timeWindow

@return int
Get the number of visits from the current IP address since a determined number of seconds ago .