User model, a plan defined in config, that plan synced to your database, and a live subscription created through the Subscribd facade.
Install the package
If you have not installed Subscribd yet, follow the installation guide first. The short version:
Make your User model billable
Open Any Eloquent model —
app/Models/User.php and implement the Billable contract, use the ManagesBilling trait, and add the two billing methods that Subscribd uses to generate invoices and create gateway customers.app/Models/User.php
Team, Organization, or otherwise — can be made billable the same way. The Billable contract is not limited to User.Register billable types in config
Open
config/subscribd.php and add your billable models under the billables key. The array key becomes the type identifier Subscribd uses internally.config/subscribd.php
Define a plan
Add a plan to the
plans array in config/subscribd.php. All prices are in minor currency units — 1900 means $19.00 for USD. The features array drives entitlement checks later.config/subscribd.php
Sync plans to the database
Run the plan sync command to insert or update the You can verify the result with:
subscribd_plans table from your config. Re-run this command any time you add or modify a plan.Subscribe a user
Use the If you need more control, you can also resolve the plan from the database and use the
Subscribd facade to create a subscription. Pass the plan key you defined in config.CreateSubscription action directly:What’s next
Pricing models
Explore per-seat, tiered, and metered pricing in addition to the flat-rate plan you just created.
Gateway configuration
Set your
.env credentials for Stripe, PayPal, or Braintree and point your webhook endpoint.Entitlements
Gate features and enforce plan limits across your entire application.
UI components
Add a plan picker, checkout form, and invoice history to your app with a single Blade tag.