Cartalyst\Sentinel\Throttling\IlluminateThrottleRepository::loadIpThrottles PHP Method

loadIpThrottles() protected method

Loads and returns the IP address throttles collection.
protected loadIpThrottles ( string $ipAddress ) : Illuminate\Database\Eloquent\Collection
$ipAddress string
return Illuminate\Database\Eloquent\Collection
    protected function loadIpThrottles($ipAddress)
    {
        $interval = Carbon::now()->subSeconds($this->ipInterval);
        return $this->createModel()->newQuery()->where('type', 'ip')->where('ip', $ipAddress)->where('created_at', '>', $interval)->get();
    }