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

loadUserThrottles() protected method

Loads and returns the user throttles collection.
protected loadUserThrottles ( Cartalyst\Sentinel\Users\UserInterface $user ) : Illuminate\Database\Eloquent\Collection
$user Cartalyst\Sentinel\Users\UserInterface
return Illuminate\Database\Eloquent\Collection
    protected function loadUserThrottles(UserInterface $user)
    {
        $interval = Carbon::now()->subSeconds($this->userInterval);
        return $this->createModel()->newQuery()->where('type', 'user')->where('user_id', $user->getUserId())->where('created_at', '>', $interval)->get();
    }