Patrick Boivin
Patrick Boivin
FFilament
Created by Matthew on 8/1/2024 in #❓┊help
Why is filament clone so large?
you can try git clone the_repository_url --depth=1, if you don't need the Git history, sometimes it's a bit smaller, but not always
6 replies
FFilament
Created by Matthew on 8/1/2024 in #❓┊help
Why is filament clone so large?
Git clone brings all the project history (all commits since the start of Filament). Composer install just grabs a .zip of the version you are trying to install.
6 replies
FFilament
Created by S1efan on 5/24/2024 in #❓┊help
Repeater-Field should not updated
One possible solution that comes to mind would be to use a repeater that's not connected to any field or relationship. You could initialize the repeater data manually when the page is loaded, and then add a customized "save" step. Maybe afterSave() would be an interesting place to experiment : https://filamentphp.com/docs/3.x/panels/resources/editing-records#lifecycle-hooks
8 replies
FFilament
Created by S1efan on 5/24/2024 in #❓┊help
Repeater-Field should not updated
Thanks, it makes sense. Maybe the repeater is still appropriate for your use-case after all. But I'm not sure if you can accomplish this with ->relationship(), because it's designed to update the related item directly.
8 replies
FFilament
Created by ToonVD on 5/24/2024 in #❓┊help
Filter resource data with url
Or maybe getTableQuery() on the page class, if you want to do it from a custom URL parameter.
5 replies
FFilament
Created by ToonVD on 5/24/2024 in #❓┊help
Filter resource data with url
You can override the getEloquentQuery() method on the resource.
5 replies
FFilament
Created by wulfheart on 5/24/2024 in #❓┊help
Github like field
4 replies
FFilament
Created by S1efan on 5/24/2024 in #❓┊help
Repeater-Field should not updated
I'm curious to know more about your use-case. Just reading the description, my first thought is that the repeater is probably not the right tool for the job?
8 replies
FFilament
Created by Sairahcaz2k on 5/23/2024 in #❓┊help
How to "inject" custom javascript when clicking on a wizard step
How do you initialize the map in the first place?
3 replies
FFilament
Created by b00na on 5/21/2024 in #❓┊help
ViewRecord - Adding Select Dropdown
Maybe the Update Status action could show a modal, with a select field?
5 replies
FFilament
Created by b00na on 5/21/2024 in #❓┊help
ViewRecord - Adding Select Dropdown
Oh, just realized that it's a View page.
5 replies
FFilament
Created by b00na on 5/21/2024 in #❓┊help
ViewRecord - Adding Select Dropdown
Just a thought - if the status is a regular column on the orders table, could you add a status select field into the form or the sidebar?
5 replies
FFilament
Created by Atena.D on 5/21/2024 in #❓┊help
How to prepend next item instead of appending it in a Filament Repeater
4 replies
FFilament
Created by Atena.D on 5/21/2024 in #❓┊help
How to prepend next item instead of appending it in a Filament Repeater
If you extend the Repeater class, you could modify the add action (getAddAction() method) to add the item at the start instead of at the end.
4 replies
FFilament
Created by Sourabh on 5/17/2024 in #❓┊help
Table Custom Column Update.
I think if you include the button inside of the custom column view, you could do everything with Alpine.js. Add x-data on the column wrapper, give each field an x-model and make the button call a livewire method though the Livewire global object.
8 replies
FFilament
Created by binaryfire on 5/17/2024 in #❓┊help
Autosave entire edit form with debounce
I'll poke around. I don't really have a need for this atm but it's been coming up one in a while in the chat. It would be a cool plugin.
31 replies
FFilament
Created by binaryfire on 5/17/2024 in #❓┊help
Autosave entire edit form with debounce
Yeah, interesting. Maybe this could be done in JS instead of wire:poll. You could add a custom event listener to the form to make all fields behave as "lazy", and trigger the autosave on blur. I'm doing something similar in Peek actually. Hehe.
31 replies
FFilament
Created by binaryfire on 5/17/2024 in #❓┊help
Autosave entire edit form with debounce
I think relationships will be the main issue.
31 replies
FFilament
Created by binaryfire on 5/17/2024 in #❓┊help
Autosave entire edit form with debounce
Maybe this could be done with wire:poll? At an interval, call a method that will get the raw state of the form and dump it in the autosave table.
31 replies
FFilament
Created by binaryfire on 5/17/2024 in #❓┊help
Autosave entire edit form with debounce
If the ideas is to save a draft, it shouldn't be too complicated to save a dump of all fields without validation. Probably not directly on the record, maybe in like a separate table?
31 replies