Download the PHP package tomatophp/filament-subscriptions without Composer
On this page you can find all versions of the php package tomatophp/filament-subscriptions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-subscriptions
Filament Subscriptions
Manage subscriptions and feature access with customizable plans in FilamentPHP
thanks for Laravel Subscriptions you can review it before use this package.
Screenshots
Features
- [x] Manage plans
- [x] Manage features
- [x] Manage subscriptions
- [x] multi-tenancy support
- [x] Native Filament subscriptions support
- [x] Subscription Middleware
- [x] Subscription Page like Spark
- [x] Subscription Events
- [x] Subscription Facade Hook
- [ ] Subscription Webhooks
- [ ] Subscription Payments Integrations
Installation
we need the Media Library plugin to be installed and migrated you can use this command to publish the migration
now you need to publish your migrations
after that please run this command
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
Using
now on your User.php model or any auth model you like you need to add this trait
To configure the billing provider for your application, use the FilamentSubscriptionsProvider
:
This setup allows users to manage their billing through a link in the tenant menu.
Requiring a Subscription
To enforce a subscription requirement for any part of your application, use the requiresTenantSubscription()
method:
Users without an active subscription will be redirected to the billing page.
Register New Subscriber Type
you can register new subscriber type by using this code
Use Events
we add events everywhere on the subscription process and here is the list of events
TomatoPHP\FilamentSubscriptions\Events\CancelPlan
TomatoPHP\FilamentSubscriptions\Events\ChangePlan
TomatoPHP\FilamentSubscriptions\Events\RequestPlan
TomatoPHP\FilamentSubscriptions\Events\SubscribePlan
all events have the same payload
Use Facade Hook
you can use the facade hook to add your custom logic to the subscription process
Publish Assets
you can publish config file by use this command
you can publish views file by use this command
you can publish languages file by use this command
Other Filament Packages
Checkout our Awesome TomatoPHP
All versions of filament-subscriptions with dependencies
filament/filament Version ^3.0
filament/spatie-laravel-media-library-plugin Version ^3.0
laravelcm/laravel-subscriptions Version ^1.3
tomatophp/console-helpers Version ^1.1
tomatophp/filament-locations Version ^2.0
tomatophp/filament-translation-component Version ^1.0