Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

socieboy's avatar

Laravel Cashier, 2 Models with Cashier.

Hello guys, I would like to know, how can I implement in two different models subscriptions to plans.

I know i could do adding the BillableInterface to the model and the BillableTrait, my question is, on the services.php files I have to set the model with the stripe works. How I reference two model? or what is that for?

0 likes
4 replies
socieboy's avatar

@equipc I'm currently not need it! but I would like to know if i can do that?

equipc's avatar

I don't see why you should be able to do that... Sounds like to have two kind of user model to authentication...

fgneba's avatar

I know this is late to answer but...what if you want to be able to have Team and User subscriptions in the same application? Wouldn't you potentially want to have Cashier on both Team and user models?

2 likes

Please or to participate in this conversation.