I require use Laravel cashier with different model rather than to use default User model

600 Views Asked by At

I am working on a property site, where users can signup for free, once they have complete their registration then they can post their property/job that they want to rent or sell out. One user can post multiple offices or houses as a property for sale/rent, but each job post/property requires a monthly subscription on a recurring basis. In the database, I have two tables one for users (users_table) and another for the user's property(users_property_table), both tables have primary and foreign relations with user_id.

I want to use the laravel cashier package with (users_property_table) not with the default one (Users), as per my understanding if I use the cashier package with the Users model than subscription will depend only User model, but in my case scenario is different, each job post or property need subscription before publishing to the site because job post is a paid service. can you please guide me on how I can achieve this functionality in laravel by using laravel cashier?

0

There are 0 best solutions below