Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Access named counter values #437

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

patinthehat
Copy link
Contributor

This PR adds the counterValue() method referenced in #416.

Specifically, it:

  • Adds the counterValue($name) method to provide a convenient way to access the value of a named counter.
  • Adds a unit test for the counterValue method.
  • Updates the documentation with the counterValue method + examples.

@freekmurze freekmurze merged commit f73d0b2 into spatie:master Apr 28, 2021
@freekmurze
Copy link
Member

Very nice as always, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants