Bart
Auto delete files when deleted in FileUpload component
Found a solution tonight. I've created an Observer and have used the isDirty and getOriginals method to find which files would need to be deleted on the 'updating' and 'deleted' event. Then used the Storage::disk('local')->delete($file) code.
4 replies
Laravel Spark Stripe and Filament - subscriptions per user
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'),
)
11 replies