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

[13.x] Add new hasTrialExpired methods #1366

Merged
merged 2 commits into from
May 16, 2022
Merged

Conversation

driesvints
Copy link
Member

Currently, there isn't a convenient way to check if a trial period has expired. We can't simply wo ! $user->onTrial() because it could be that the user didn't have a trial to begin with.

To, for example, display a banner that a billable's trial has expired we need to know that they were trialing in the first place and that the period has expired.

Closes #1361

@taylorotwell taylorotwell merged commit fd9cb91 into 13.x May 16, 2022
@taylorotwell taylorotwell deleted the determine-end-of-trial branch May 16, 2022 16:30
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.

Add method to check for expired trial
2 participants