Chrisbjr\ApiGuard\Repositories\ApiLogRepository::countApiKeyRequests PHP Метод

countApiKeyRequests() публичный Метод

public countApiKeyRequests ( $apiKeyId, $routeAction, $method, $keyIncrementTime )
    public function countApiKeyRequests($apiKeyId, $routeAction, $method, $keyIncrementTime)
    {
        return self::where('api_key_id', '=', $apiKeyId)->where('route', '=', $routeAction)->where('method', '=', $method)->where('created_at', '>=', date('Y-m-d H:i:s', $keyIncrementTime))->where('created_at', '<=', date('Y-m-d H:i:s'))->count();
    }