private function createRateLimitData($applicationId, $userId)
	{
		// data needed to create record
		$ipAddress    = \Request::ip();
		$countShort   = 0;
		$countLong    = 0;
		$limitShort   = $this->config['short']['limit'];
		$limitLong    = $this->config['long']['limit'];
		$created      = with(new Date('now'))->toSql();
		$expiresShort = $this->getNewExpiresDateString('short');
		$expiresLong  = $this->getNewExpiresDateString('long');

		// create initial limit record
		return $this->storage->createRateLimitData(
			$applicationId,
			$userId,
			$ipAddress,
			$limitShort,
			$limitLong,
			$countShort,
			$countLong,
			$expiresShort,
			$expiresLong,
			$created
		);
	}
private function createRateLimitData($applicationId, $userId)
	{
		// data needed to create record
		$ipAddress    = \Request::ip();
		$countShort   = 0;
		$countLong    = 0;
		$limitShort   = $this->config['short']['limit'];
		$limitLong    = $this->config['long']['limit'];
		$created      = with(new Date('now'))->toSql();
		$expiresShort = $this->getNewExpiresDateString('short');
		$expiresLong  = $this->getNewExpiresDateString('long');

		// create initial limit record
		return $this->storage->createRateLimitData(
			$applicationId,
			$userId,
			$ipAddress,
			$limitShort,
			$limitLong,
			$countShort,
			$countLong,
			$expiresShort,
			$expiresLong,
			$created
		);
	}
private function createRateLimitData ( $ applicationId , $ userId ) { // data needed to create record $ ipAddress = \ Request :: ip ( ) ; $ countShort = 0 ; $ countLong = 0 ; $ limitShort = $ this -> config [ 'short' ] [ 'limit' ] ; $ limitLong = $ this -> config [ 'long' ] [ 'limit' ] ; $ created = with ( new Date ( 'now' ) ) -> toSql ( ) ; $ expiresShort = $ this -> getNewExpiresDateString ( 'short' ) ; $ expiresLong = $ this -> getNewExpiresDateString ( 'long' ) ; // create initial limit record return $ this -> storage -> createRateLimitData ( $ applicationId , $ userId , $ ipAddress , $ limitShort , $ limitLong , $ countShort , $ countLong , $ expiresShort , $ expiresLong , $ created ) ; }
Create initial limit data

@param   int    $applicationId  Application identifier
@param   int    $userId         User identifier
@return  array  Array of rate limit data
Create initial limit data