ollieread
ollieread
FFilament
Created by ollieread on 1/30/2025 in #❓┊help
The user menu in the top right breaks on one page
No description
4 replies
FFilament
Created by ollieread on 1/29/2025 in #❓┊help
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.
Infolists\Components\Actions\Action::make('Show')
->color('primary')
->hidden($this->showCredentials)
->action(function () {
$this->showCredentials = true;
}),

Infolists\Components\Actions\Action::make('Hide')
->color('primary')
->hidden(! $this->showCredentials)
->action(function () {
$this->showCredentials = false;
}),
Infolists\Components\Actions\Action::make('Show')
->color('primary')
->hidden($this->showCredentials)
->action(function () {
$this->showCredentials = true;
}),

Infolists\Components\Actions\Action::make('Hide')
->color('primary')
->hidden(! $this->showCredentials)
->action(function () {
$this->showCredentials = false;
}),
8 replies
FFilament
Created by ollieread on 1/29/2025 in #❓┊help
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:
Route::middleware([...])
->prefix('...')
->group(function () {
Filament::routes();
});
Route::middleware([...])
->prefix('...')
->group(function () {
Filament::routes();
});
43 replies
FFilament
Created by ollieread on 1/22/2025 in #❓┊help
Using getStateUsing on an infolist component causes PHP to crash
When I add getStateUsing to a TextEntry, PHP exits.
Infolists\Components\TextEntry::make('name')->getStateUsing(fn ($state) => $state ?? ''),
Infolists\Components\TextEntry::make('name')->getStateUsing(fn ($state) => $state ?? ''),
Causes the following in the terminal from docker
laravel.test-1 | 2025-01-22 12:45:10,296 WARN exited: php (exit status 139; not expected)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 68 (terminated by SIGSEGV)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 69 (terminated by SIGTERM)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 70 (terminated by SIGSEGV)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 71 (terminated by SIGSEGV)
laravel.test-1 | 2025-01-22 12:45:11,303 INFO spawned: 'php' with pid 72
laravel.test-1 | 2025-01-22 12:45:10,296 WARN exited: php (exit status 139; not expected)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 68 (terminated by SIGSEGV)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 69 (terminated by SIGTERM)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 70 (terminated by SIGSEGV)
laravel.test-1 | 2025-01-22 12:45:10,296 INFO reaped unknown pid 71 (terminated by SIGSEGV)
laravel.test-1 | 2025-01-22 12:45:11,303 INFO spawned: 'php' with pid 72
That's a SIGSEGV failure. I'm using Laravel sail with no customisation
15 replies
FFilament
Created by ollieread on 1/22/2025 in #❓┊help
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
FFilament
Created by ollieread on 11/18/2024 in #❓┊help
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