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

loadGlobalThrottles() protected method

Loads and returns the global throttles collection.
protected loadGlobalThrottles ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection
    protected function loadGlobalThrottles()
    {
        $interval = Carbon::now()->subSeconds($this->globalInterval);
        return $this->createModel()->newQuery()->where('type', 'global')->where('created_at', '>', $interval)->get();
    }