Add Laravel Cashier Stripe support to Filament multi tenant panels.
You can support me by buying Pennant feature flags for Filament.
You can install the package via composer:
composer require maartenpaauw/filament-cashier-billing-provider
Add plans to your cashier.php
config file:
'plans' => [
'basic' => [
'trial_days' => 14,
'price_id' => ENV('CASHIER_STRIPE_SUBSCRIPTION_BASIC_PRICE_ID'),
],
],
Warning The current implementation only supports recurring subscriptions with trial days required.
Add the following code to your AdminPanelProvider
(or other panel providers):
use Maartenpaauw\Filament\Cashier\Stripe\BillingProvider;
// ...
public function panel(Panel $panel): Panel
{
return $panel
// ...
->tenantBillingProvider(new BillingProvider('basic'))
->requiresTenantSubscription()
// ...
}
Note Requiring tenant subscription is optional. You can remove
->requiresTenantSubscription()
if you wish.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.