protected function countThrottle($identityString, $increments = 1)
    {
        $count = app('cache')->get('login_throttling:' . md5($identityString), 0);

        $count = $count + $increments;

        $ttl = config('store.throttle_time_period');

        app('cache')->put('login_throttling:' . md5($identityString), $count, $ttl);

        return $count;
    }
protected function countThrottle($identityString, $increments = 1)
    {
        $count = app('cache')->get('login_throttling:' . md5($identityString), 0);

        $count = $count + $increments;

        $ttl = config('store.throttle_time_period');

        app('cache')->put('login_throttling:' . md5($identityString), $count, $ttl);

        return $count;
    }
protected function countThrottle ( $ identityString , $ increments = 1 ) { $ count = app ( 'cache' ) -> get ( 'login_throttling:' . md5 ( $ identityString ) , 0 ) ; $ count = $ count + $ increments ; $ ttl = config ( 'store.throttle_time_period' ) ; app ( 'cache' ) -> put ( 'login_throttling:' . md5 ( $ identityString ) , $ count , $ ttl ) ; return $ count ; }
Increments the count for the given string by one stores
it into cache and returns the current value for that
identity.

@param string $identityString
@param int $increments Amount that is going to be added to the throttling attempts for the given identity.

@return int How many times that same string was used.
Increments the count for the given string by one stores it into cache and returns the current value for that identity .