Mike Peters
Mike Peters
FFilament
Created by Mike Peters on 2/17/2025 in #❓┊help
Autopopulate SelectFilter by table values?
Hi all! Is it possible to add a SelectFilter without defining the options manually when you want a filter based on the unique values in the table? Let's say you have a PostsTable where the category of the post is a string value in the posts table. Can you add a SelectFilter for this category column without defining the options and the the Table/Filter will find the unique options by itself?
11 replies
FFilament
Created by Mike Peters on 2/15/2025 in #❓┊help
Select->multiple() in SelectColumn?
Hi all, Would like to have a select "multiple" as SelectColumn. Doesn't seem to be possible yet out of the box right? How should I approach this? Custom column?
9 replies
FFilament
Created by Mike Peters on 2/11/2025 in #❓┊help
Custom theme & testing: Vite manifest not found
Hi all, Quick question on using a custom theme and testing. When using a custom theme, locally through vite and compiled on production using vite build, this works fine! However, when running the tests (locally or in the CI pipeline) neither is available of course, so I get Vite manifest not found at: ... .json. (Vite is not running and the assets are not built for production) How do you guys deal with asset compiling and testing?
4 replies
FFilament
Created by Mike Peters on 1/29/2025 in #❓┊help
requiresConfirmation doesn't seem to work on form submit action
hi all! I'm adding a custom form on a custom page but can't seem to add requiresConfirmation() to the form submit. The Form part:
return $form
->schema([
Select::make('tags')
->options($tags ? array_combine($tags, $tags) : [])
->required()
->minItems(1)
->multiple()
->searchable()
])
->statePath('clearCacheFormData');
return $form
->schema([
Select::make('tags')
->options($tags ? array_combine($tags, $tags) : [])
->required()
->minItems(1)
->multiple()
->searchable()
])
->statePath('clearCacheFormData');
The blade;
<x-filament-panels::page>

<x-filament::section>
<x-slot name="heading">
Cache legen
</x-slot>

<form wire:submit="clearCache">
<div class="mb-4">
{{ $this->clearCacheForm }}
</div>

<x-filament-panels::form.actions :actions="[$this->getClearCacheSaveAction()]"/>
</form>
</x-filament::section>
<x-filament-panels::page>

<x-filament::section>
<x-slot name="heading">
Cache legen
</x-slot>

<form wire:submit="clearCache">
<div class="mb-4">
{{ $this->clearCacheForm }}
</div>

<x-filament-panels::form.actions :actions="[$this->getClearCacheSaveAction()]"/>
</form>
</x-filament::section>
The action method;
public function getClearCacheSaveAction(): Action
{
return Action::make('save')
->label('Geselecteerde caches legen')
->requiresConfirmation()
->submit('clearCache');
}
public function getClearCacheSaveAction(): Action
{
return Action::make('save')
->label('Geselecteerde caches legen')
->requiresConfirmation()
->submit('clearCache');
}
- Why is the requiresConfirmation not firing? - Do you see general improvements in this custom form approach? Thanks!!
9 replies
FFilament
Created by Mike Peters on 1/27/2025 in #❓┊help
Rich Editor escaping its own HTML
No description
10 replies