Krzysztof
Custom FileUpload
Is it possible to "fake" the underlying file for FileUpload field? I am connecting with external API and get the file in base64 format.
I am saving the file to the temporary disk so I think I should be able to provide the path to the file no problem.
I've found getUploadedFileUsing method on FileUpload but it does not seem to fire. Has anyone tried something similar?
3 replies
Hide navigation item but redirect to it when switching tenants
I have a multi-tenant app with mostly custom pages (outside of multi-tenancy, regular routes/web.php pages).
When I switch tenants I have to save it to the database. But without any tenant-aware pages I do not have access to the new tenant.
What I found out is that Filament is redirecting users to the first navigation item that is visible.
I've created a tenant-aware page as a hack, that saves the current tenant in the mount method and redirects the user to other non-tenant page.
The problem is, it needs to be present in the navigation which is not going to happen. I've also tried custom navigation builder, but it also gets the first visible item.
Have anyone done something similar or is there a better way to save a tenant after switch?
3 replies