Mike Peters
Mike Peters
FFilament
Created by Mike Peters on 2/17/2025 in #❓┊help
Autopopulate SelectFilter by table values?
good that you mention, so the relationship variant works exactly like what I mean, but then I mean for regular values without relationships
28 replies
FFilament
Created by Mike Peters on 2/17/2025 in #❓┊help
Autopopulate SelectFilter by table values?
yes, but then for normal values in the DB, so let's say the posts have a type which is just a string, autopopulate from there
28 replies
FFilament
Created by Mike Peters on 2/15/2025 in #❓┊help
Select->multiple() in SelectColumn?
If you want to know more about the solution / something is not clear, let me know, I'll post some more details
10 replies
FFilament
Created by Mike Peters on 2/15/2025 in #❓┊help
Select->multiple() in SelectColumn?
This solution does need the following for the livewire component:
public function mount(): void
{
$this->form->fill([
'channels' => ...->toArray(),
]);
}
public function mount(): void
{
$this->form->fill([
'channels' => ...->toArray(),
]);
}
and I added a custom save action below the table as the user wants to save all changes together and not "live" There you can then just do $this->form->getState()
10 replies
FFilament
Created by Mike Peters on 2/17/2025 in #❓┊help
Autopopulate SelectFilter by table values?
So imagine I have table with posts and I'd like to just add SelectFilter::make('category') and then Filament could just by itself find the values for category that are in the db right now and magically make the filter. Was wondering if that existed.
28 replies
FFilament
Created by Mike Peters on 2/15/2025 in #❓┊help
Select->multiple() in SelectColumn?
No description
10 replies
FFilament
Created by Mike Peters on 2/17/2025 in #❓┊help
Autopopulate SelectFilter by table values?
thanks though!
28 replies
FFilament
Created by Mike Peters on 2/17/2025 in #❓┊help
Autopopulate SelectFilter by table values?
@toeknee yes but then I'm still running the query, wondering if the filter could auto populate with the values it finds in the DB (it already queries the db to get the values) So if I name it x it automatically fetches the values for x by itself. But given your answer I can imagine this doesn't exist yet.
28 replies
FFilament
Created by Mike Peters on 2/15/2025 in #❓┊help
Select->multiple() in SelectColumn?
yes having a slideover right now, but for the users it's one click too many 😅
10 replies
FFilament
Created by Mike Peters on 2/15/2025 in #❓┊help
Select->multiple() in SelectColumn?
Will give it a go!
10 replies
FFilament
Created by Mike Peters on 2/11/2025 in #❓┊help
Custom theme & testing: Vite manifest not found
thanks @dissto that did the trick!
4 replies
FFilament
Created by Mike Peters on 1/29/2025 in #❓┊help
requiresConfirmation doesn't seem to work on form submit action
@Leandro Ferreira the trick was to not use ->submit('clearCache'), but instead use ->action(). So you were absolutely right 🙂 This combined with the lack of the <x-filament-actions::modals /> in the view together now made it work. Thanks for the help
9 replies
FFilament
Created by Mike Peters on 1/29/2025 in #❓┊help
requiresConfirmation doesn't seem to work on form submit action
Thanks for the suggestion Leandro!, will try this tomorrow and get back to you on it here
9 replies
FFilament
Created by Mike Peters on 1/29/2025 in #❓┊help
requiresConfirmation doesn't seem to work on form submit action
what does getClearCacheSave refer to? Adding this didn't make a difference, but thanks 🙂
9 replies
FFilament
Created by Mike Peters on 1/29/2025 in #❓┊help
requiresConfirmation doesn't seem to work on form submit action
I'm using the filament page component, I believe it's already there. Adding the thing in the view didn't make a difference. Thanks though!
9 replies
FFilament
Created by Mike Peters on 1/27/2025 in #❓┊help
Rich Editor escaping its own HTML
Yes thanks, totally agree. I have to add Filament to an existing project so the middleware is already there. Will remove it for Filament
10 replies
FFilament
Created by Mike Peters on 1/27/2025 in #❓┊help
Rich Editor escaping its own HTML
Never mind @Alnuaimi and others: I found a global Laravel middleware messing with the payload and escaping characters like this. I thought Filament had its own middlewares only, but apparently a base layer of middleware of Laravel is also applied. Thanks for your help.
10 replies
FFilament
Created by Mike Peters on 1/27/2025 in #❓┊help
Rich Editor escaping its own HTML
RichEditor::make('name')
->label('Naam van campagne')
->helperText(fn (string $operation): ?string => 'create' === $operation
? 'Een beschrijvende naam zorgt dat deze makkelijk terug te vinden is.'
: null)
->required(),
RichEditor::make('name')
->label('Naam van campagne')
->helperText(fn (string $operation): ?string => 'create' === $operation
? 'Een beschrijvende naam zorgt dat deze makkelijk terug te vinden is.'
: null)
->required(),
On edit page I put in text, make it bold using toolbar buttons, but after save it's escaped like this: &lt;p&gt;&lt;strong&gt;test&lt;/strong&gt;&lt;/p&gt;
10 replies
FFilament
Created by Mike Peters on 1/27/2025 in #❓┊help
Rich Editor escaping its own HTML
hi, thanks for your reply, but this is the RichEditor:
RichEditor::make(...)
RichEditor::make(...)
10 replies