Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

Conversation

6ichem
Copy link
Contributor

@6ichem 6ichem commented Dec 18, 2021

i have been using this feature for a while through extending the main PlanSubscription model on my project but I thought it's a necessary feature to have in the original package since we have a similar feature that shows expired and so on.

Usage example:
$activeSubscriptions = app('rinvex.subscriptions.plan_subscription')->ofSubscriber($user)->findActive()->get();

@Omranic Omranic merged commit 1c28c12 into rinvex:develop Dec 18, 2021
@Omranic
Copy link
Member

Omranic commented Dec 18, 2021

Thank you!

@Fayozjon
Copy link

Fayozjon commented Jan 7, 2022

findActive not working
Call to undefined method Illuminate\Database\Eloquent\Builder::findActive()

@Omranic
Copy link
Member

Omranic commented Jan 8, 2022

@Fayozjon this PR wasn't tagged in any release yet, so to use it you need to checkout the develop branch until its tagged. So basically it works, but it exists only on the develop branch so far.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants