Using Polymorphic Relationships with Laravel Cashier (Stripe) #52530
Unanswered
BradDoesCode
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am wanting to use stripe as a polymorphic relation and wanted to make sure that my solution does not cause any known issues. I want to use stripe currently with both "User" and "Organisation" models and have added the "Billable" trait to both. I then change the migrations for cashier: -
Add polymorphic relation to subscriptions table.
To allow cashier to work with the organisation table I add the required fields are are added to the user table.
I have looked online for the answer for this but all the posts I have seen are around 4 years old and do not confirm if this is no longer an issue. Please let me know if there are any known issues or better solutions! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions