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

Getter for if a user is subscribed #261

Closed
ignaciocunado opened this issue Aug 10, 2024 · 2 comments · Fixed by #262
Closed

Getter for if a user is subscribed #261

ignaciocunado opened this issue Aug 10, 2024 · 2 comments · Fixed by #262

Comments

@ignaciocunado
Copy link
Contributor

It would be nice to have a getter on the Billable trait that returns true if a user is subscribed (to anything). Similar to

public function subscribed($subscription = 'default', $plan = null)

but it would return true if a user has any active subscription.

@sandervanhooft
Copy link
Collaborator

Hi @ignaciocunado ,

Thanks for this ticket. I agree with the use case, not sure about the implementation yet. We'll look into it.

@ignaciocunado
Copy link
Contributor Author

Thanks. Do let me know if you would like me to change something.

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 a pull request may close this issue.

2 participants