ollieread
Issue with toggling actions
I've got two actions on an Infolist Section in the footer, a "Show" and "Hide" for an OAuth secret. When "Show" is clicked it works, except the "Show" button remains. I have to click it again for it to be aware of the state. Same with the "Hide" button. I've attached a video.
The code for the actions is simple.
8 replies
Manually registering Filaments routes
Is there a way to disable the automatic registration of routes with Filament, so that I can manually register them?
I don't want to build the routes myself, I just want to be able to have something like the following:
43 replies
How do I provide a custom value for form fields?
I've got an application where the create and edit forms for an
App
don't actually include any fields that exist on that model. The App
model represents a third-party application for a larger system, and when modifying it you're actually modifying an AppVersion
of draft
type.
This isn't an issue when creating, because the custom logic behind the creation handles that, but when it comes to editing, the fields have no values because it doesn't know where to get them from.
I want to provide custom logic, in the same way I would a table, but I can't figure it out from the code, nor find it in the documentation.3 replies
Ability to find a panel programmatically
Hello, I'm pretty new to Filament, but I'm currently developing a multitenancy plugin for Laravel and I'm hoping somebody figure out how to achieve an integration between it and Filament.
One of the things they want to do is feature lock panels, which I believe we can do with middleware. The other thing they want to do is customise the panel based on the current tenant. Things like the colour etc.
Are there lifecycle events for panels? Or, is there a way that we could programatically locate a registered panel and change its settings once the current tenant is identified and set?
I'm looking through the code and I can't find anything that fits, but there's a lot there. Would appreciate some guidance on this.
3 replies