laravelcm / laravel-subscriptions

Laravel Subscriptions is a flexible plans and subscription management system for Laravel.
MIT License
111 stars 19 forks source link

Duplicate Feature Slug #26

Open 200-0K opened 1 week ago

200-0K commented 1 week ago

I have multiple subscription plans (free, pro, premium), each with features that share the same slug but have different values depending on the plan. When I attempt to save two features with the same slug, a number suffix is added due to the unique constraint on the feature slug. What’s the best way to handle this? Should I create separate feature slugs for each plan, or is there a recommended approach to manage features with shared slugs across plans?

image