LimeDeck / nova-cashier-overview

Interact with your Stripe subscriptions directly inside Nova.
MIT License
28 stars 19 forks source link

Multiple subscription #6

Open midesweb opened 4 years ago

midesweb commented 4 years ago

I am trying to manage different subscriptions on the same resource:

public function fields(Request $request)
{
    return [
        ID::make()->sortable(),
        // ...

        Subscription::make('one'),
        Subscription::make('two'),

        // ...
    ];
}

However, when the related resource is opened in Nova the system only shows the first subscription field (In this case "one").

rudowastaken commented 4 years ago

Hi @midesweb, I suspect that Nova displays only a single Resource Tool with the same name. I'd appreciate if somebody knows whether it's really enforced like this or there is a way around it.

Changing the name of the subscription was originally meant to allow for different naming conventions. I haven't really needed to use this since we usually link multiple billable entities for User (Project,...) when creating subscriptions but this feature could also be interesting to some people.

eduardocruz commented 4 years ago

Got the same issue. I have more than one subscription name, and it does not work, since the package allows only a single subscription name.

mstaack commented 3 years ago

yeah same for me, i have multiple subscription but only one per user, displaying the correct one does not work.