lucasdotvin / laravel-soulbscription

A straightforward interface to handle subscriptions and feature consumption.
https://soulbscription.lucas.vin
MIT License
581 stars 79 forks source link

Fixed giveTicketFor method #83

Open noxoua opened 11 months ago

noxoua commented 11 months ago

Getting a feature must be done by ID, because there could be many features with the same name.

example:

plan-1

plan-2

plan-3

plan-4


So If the user has plan-3, and calling ->giveTicketFor('deploy-minutes'.., the ticket will be assigned to the feature in plan-1.

set charges:

Screenshot 2023-10-19 at 17 41 02

get charges:

Screenshot 2023-10-19 at 13 56 02