composer require karpovigorok/subkitPublish the config and run migrations:
php artisan vendor:publish --tag=subkit-config
php artisan vendor:publish --tag=subkit-migrations
php artisan migrateRegister the plugin in your Filament panel provider:
use SubKit\Filament\SubKitPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(SubKitPlugin::make());
}php artisan vendor:publish --tag=subkit-configAdd to your .env:
STRIPE_KEY=pk_live_...
STRIPE_SECRET=sk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
# Optional
EASY_SUB_CURRENCY_CODE=USD
EASY_SUB_CURRENCY_SYMBOL=$Your User model must use Cashier's Billable trait:
use Laravel\Cashier\Billable;
class User extends Authenticatable
{
use Billable;
}To enable runtime plan limits and automatic cache flushing on subscription changes, also set billable_model in config/subkit.php:
'billable_model' => App\Models\User::class,For team-level subscriptions:
'billable_model' => App\Models\Team::class,| Tag | Publishes |
|---|---|
subkit-config |
config/subkit.php — includes billable_model setting |
subkit-migrations |
All package migrations (plans, features, limits, etc.) |
subkit-views |
Blade views (for customization) |
subkit-lang |
Translation strings |