Laravel Spark Stripe and Filament - subscriptions per user
Hi all, I'm struggling a bit with Laravel Spark Stripe and Filament. I noticed there's the spark-billing-provider for Filament, but I think it's designed for multi-tenancy and subscriptions per tenant. I'm building a setup to do subscriptions per user.
Got the Laravel Spark integration working for the billing page and communication with Stripe. But I'm not figuring out how to check for these subscriptions, show banners below the top bar when someone is on a trial etc.
Did anyone do this before, subscriptions per user? I'm in need of a small push into the right direction
Thanks
Got the Laravel Spark integration working for the billing page and communication with Stripe. But I'm not figuring out how to check for these subscriptions, show banners below the top bar when someone is on a trial etc.
Did anyone do this before, subscriptions per user? I'm in need of a small push into the right direction
Thanks
Solution
Update: I used a custom blade file (subscriptionBanner) for the banner and attached it using a renderHook in the panel provider. It was as simple as that in the end
renderHook('panels::body.start',
fn () => view('subscriptionBanner'),
)