Dimitar
Dimitar
FFilament
Created by Dimitar on 4/16/2025 in #❓┊help
Table polling event/hook?
Its possible. Just find a renderhook that is very close to the table and add ->poll(15) to the table:
php FilamentView::registerRenderHook(
PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE,
fn (): string => Blade::render(
<<<'blade'
@php session(['rerender' => (session('rerender') + 1)]); @endphp
<div>
RENDER BEFOER TABLEE {{ session('rerender') }}
</div>
blade
)
);
php FilamentView::registerRenderHook(
PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE,
fn (): string => Blade::render(
<<<'blade'
@php session(['rerender' => (session('rerender') + 1)]); @endphp
<div>
RENDER BEFOER TABLEE {{ session('rerender') }}
</div>
blade
)
);
Then you can add another hook to the body to render some static html or js code;
7 replies
FFilament
Created by niels on 4/17/2025 in #❓┊help
FileUpload tmp to S3 but permanent file to storage/public/*
Try adding these?: Forms\Components\FileUpload::make('video') ->disk('s3') ->directory('mydir/videos') ->visibility('public') ->moveFiles(true) // this
3 replies
FFilament
Created by Dimitar on 4/16/2025 in #❓┊help
Table polling event/hook?
Event Or Render hook* When polling does filament go trough all the render hooks again, like that one? FilamentView::registerRenderHook( PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE, fn (): string => view('my::hook-content'), );
7 replies
FFilament
Created by Dimitar on 4/16/2025 in #❓┊help
Table polling event/hook?
Someone?
7 replies
FFilament
Created by morty on 4/16/2025 in #❓┊help
How can I fill a field on the edit form that isn't saved to the database?
9 replies
FFilament
Created by omar abdou on 4/10/2025 in #❓┊help
How to create a checkout page in filament
Just create a custom livewire component in you public space that has nothing to do with filament and use filament's form build (you can use it ouside of the admin panel) and create your form: Documentation: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component Here is a YT video show example: https://www.youtube.com/watch?v=g2v_FI4ML5U
5 replies
FFilament
Created by peteswan23 on 3/7/2025 in #❓┊help
Multiple Relationships
It should be, if not, you should make a "subtasks " hasManyThrough relation in your main model and then you should be able to use it like this: Forms\Components\Repeater::make('subtasks')->relationship('subtasks')
3 replies
FFilament
Created by Chanda on 2/13/2025 in #❓┊help
Validate One Part of the Tab
3 replies
FFilament
Created by Hedi on 2/13/2025 in #❓┊help
Don't update the whole page for live components?
Can you show the code and what queries are runing again, do you eager load them?
3 replies
FFilament
Created by mithyy on 12/13/2024 in #❓┊help
Class "Filament\Forms\Components\Datepicker" not found
try using the full path? use \Filament\Forms\Components\DatePicker;
4 replies
FFilament
Created by Dimitar on 12/1/2024 in #❓┊help
Repeater and many-to-many (belognsToMany, morphsToMany) not saving
Yes, i get that but its a poly morphic many-to-many relation and its not easy to setup. Shouldnt this be handled out of the box, it seemed like it would be.
7 replies
FFilament
Created by Dimitar on 12/1/2024 in #❓┊help
Repeater and many-to-many (belognsToMany, morphsToMany) not saving
ist there some package for handling that?
7 replies
FFilament
Created by Dimitar on 12/1/2024 in #❓┊help
Repeater and many-to-many (belognsToMany, morphsToMany) not saving
up
7 replies
FFilament
Created by Mark Chaney on 11/13/2024 in #❓┊help
Fileupload field and Grid
I have seen others asking like you do, there was a tiket describing how to do it with css, there is no method like ->columns or somnthing like that. Try searching for file upload and you will find it.
4 replies
FFilament
Created by gigiloouu on 11/5/2024 in #❓┊help
When i upload file and click to download its writting that file doest exist
try creating and using custom ->disk('public') or something like that; also try ->directory('custom_dir')->visibility('public')
8 replies
FFilament
Created by SuperUserDo on 10/15/2024 in #❓┊help
Custom Column Clickable - Prevent
6 replies
FFilament
Created by bwurtz999 on 10/15/2024 in #❓┊help
Refresh Form Data in Modal
do a $record->refresh() at the end of an action it will reload it
4 replies
FFilament
Created by BKF Dev on 10/12/2024 in #❓┊help
Custom FileUpload action
have you tried?
FileUpload::make('file')
->saveUploadedFileUsing(function ($record, $file) {
// todo
})
FileUpload::make('file')
->saveUploadedFileUsing(function ($record, $file) {
// todo
})
4 replies
FFilament
Created by Dimitar on 10/9/2024 in #❓┊help
Action->form() not getting filled when reusing form
Also the action form submit in the modal doesnt get saved, how to trigger the save, or how to get the action form state and save it manualy if I need to?
5 replies