protected function resetAttempts($payload)
	{
		$payload = json_decode($payload, true);

		if (isset($payload['attempts'])) {
			$payload['attempts'] = 1;
		}

		return json_encode($payload);
	}
protected function resetAttempts($payload)
	{
		$payload = json_decode($payload, true);

		if (isset($payload['attempts'])) {
			$payload['attempts'] = 1;
		}

		return json_encode($payload);
	}
protected function resetAttempts ( $ payload ) { $ payload = json_decode ( $ payload , true ) ; if ( isset ( $ payload [ 'attempts' ] ) ) { $ payload [ 'attempts' ] = 1 ; } return json_encode ( $ payload ) ; }
Reset the payload attempts.

@param  string  $payload
@return string
Reset the payload attempts .