Will πŸ‡¬πŸ‡Ή
Will πŸ‡¬πŸ‡Ή
FFilament
Created by Will πŸ‡¬πŸ‡Ή on 6/27/2024 in #β“β”Šhelp
Call async JavaScript function from a Action
here is a quick demo, modal closes right away doesn't wait for the JS function to finish
3 replies
FFilament
Created by Cheesus Krays on 4/8/2024 in #β“β”Šhelp
How do I show the date
column is case sensitive so make sure to type it as is in your DB 'Created_at' shoul be 'created_at' So Tables\Columns\TextColumn::make('created_at') The other one not sure :/
6 replies
FFilament
Created by Will πŸ‡¬πŸ‡Ή on 4/8/2024 in #β“β”Šhelp
How to get team_id when creating new record from Relation Manager
Thanks @tomc actually found probaly a safer way since Users can edit values in hidden fields
->headerActions([
Tables\Actions\CreateAction::make()->mutateFormDataUsing(function (array $data): array {
$data['team_id'] = Filament::getTenant()->id;
return $data;
})
])
->headerActions([
Tables\Actions\CreateAction::make()->mutateFormDataUsing(function (array $data): array {
$data['team_id'] = Filament::getTenant()->id;
return $data;
})
])
As mention in the docs - https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#customizing-data-before-saving
5 replies