- Replace manual subscription create/update logic with updateOrCreate() and firstOrCreate() to eliminate race conditions - Add validation in PricingPlans to prevent subscribing if team already has active subscription - Improve error handling for missing team_id in customer.subscription.updated event - Add tests verifying subscriptions are updated rather than duplicated |
||
|---|---|---|
| .. | ||
| Actions.php | ||
| Index.php | ||
| PricingPlans.php | ||
| Show.php | ||