laraplans
laraplans copied to clipboard
SaaS style recurring plans for Laravel.
@gerardojbaez There is a bug with features reset dates. Reset dates should never be set before today. If a user subscribes to a yearly plan, uses a feature monthly resettable...
Error "Invalid plan feature: listings". When using "$user->subscriptionUsage('main')->record('listings', 2)"
Referring issue: #61 Feature reset date should always be generated after today.
Please see description: https://github.com/czechbox/laravelplans/issues/7
getting this while trying to record feature usage: ` $this->report->user->subscriptionUsage('main')->record('credits', $credits_used); ` the full error and stack trace: > PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-credits' for key...
Invalid plan feature: tempore tempore exist in database Don't pass in Feature.php lines: 41. if (!self::isValid($feature_code)) { 42 throw new InvalidPlanFeatureException($feature_code); 43 } Laravel 5.6
Let use this thread for feedback and suggestions! Feel free to share how you are using Laraplans package, what features you liked more or what you think is missing! **Please...
Pretty simply, many times there will be a free plan which doesn't expire and will not get any event such as payment received to trigger a renewal.
https://github.com/gerardojbaez/laraplans/blob/5b6d8f62e5b99e55b21615bf085b3c22829ac406/src/database/factories/PlanSubscriptionUsageFactory.php#L8