Jordy
Jordy
FFilament
Created by Jordy on 6/18/2024 in #❓┊help
Conditionally hide table summary
No description
23 replies
FFilament
Created by Jordy on 6/12/2024 in #❓┊help
Issue with Summary Range formatting
No description
25 replies
FFilament
Created by Jordy on 3/22/2024 in #❓┊help
How do I validate email
why is ->email() not included on the Validation method listing page? I have found only regex there when it comes to emails btw Microsoft released a opensource redis competitor
9 replies
FFilament
Created by Jordy on 1/31/2024 in #❓┊help
Localise custom labels
(first time dealing with translations in an app) I am using the bezhan language switcher which works great for text from filament, validation etc Only issue I am facing is that custom labels do not translate unless the exact word/phrase is in the lang files and I end up having to manually add all phrases/words for each label.. I am sure there is a better way to go about this? e.g. this requires this exact label in all lang files otherwise it wont translate
DatePicker::make('desired_delivery_date')
->label(__('Desired delivery date'))
DatePicker::make('desired_delivery_date')
->label(__('Desired delivery date'))
1 replies
FFilament
Created by Jordy on 12/20/2023 in #❓┊help
Remove "all" option from pagination for entire panel
I am aware I can just call )->paginated([10, 25, 50, 100]); on each table but that kinda sucks xD.. is there a away to do this? (should be possible to add to the PanelProvider or a config option?)
5 replies
FFilament
Created by Jordy on 12/8/2023 in #❓┊help
getTableRecordUrlUsing a new tab
https://filamentphp.com/docs/2.x/tables/getting-started#record-urls I have this but want to open the url in a new tab (links to an external site).. can I do so or do I have to define ->url() and ->openUrlInNewTab() on every column?
17 replies
FFilament
Created by Jordy on 12/7/2023 in #❓┊help
Default value for a table filter with a morpTo select
where does one put the ->default() on something like this:
Filter::make('assigned')
->form([
MorphToSelect::make('assigned')
->model(ChecklistItem::class)
->types([
Type::make(User::class)
->titleColumnName('name'),
Type::make(Team::class)
->titleColumnName('name')
])->searchable(),
])
->query(function (Builder $query, array $data): Builder {
if (!$data['assigned_type'] || !$data['assigned_id']) {
return $query;
}

return $query->where('assigned_type', $data['assigned_type'])->where('assigned_id', $data['assigned_id']);
});
Filter::make('assigned')
->form([
MorphToSelect::make('assigned')
->model(ChecklistItem::class)
->types([
Type::make(User::class)
->titleColumnName('name'),
Type::make(Team::class)
->titleColumnName('name')
])->searchable(),
])
->query(function (Builder $query, array $data): Builder {
if (!$data['assigned_type'] || !$data['assigned_id']) {
return $query;
}

return $query->where('assigned_type', $data['assigned_type'])->where('assigned_id', $data['assigned_id']);
});
24 replies
FFilament
Created by Jordy on 11/17/2023 in #❓┊help
ListsRecord\Tab deprecation
I am using tabs in my resource like the orders page does in the demo (https://github.com/filamentphp/demo/blob/678ef5c53f219a2032c0ae70fd5b5e7d3cfeb9b5/app/Filament/Resources/Shop/OrderResource/Pages/ListOrders.php#L31C6-L31C6) but I get a warning it is deprecated and to use the Components/Tab.. but this does not have the query functionality.. am I supposed to fetch the active tab in the resource from now on or will this functionality come to the default tab? If so, will the demo be updated too? (I am fine with opening a pr).. I am sure more people look at the source code for inspiration like I did ^^
7 replies
FFilament
Created by Jordy on 10/25/2023 in #❓┊help
Debounce on searchable() columns
Is there a way to modify the searchbar (debounce) for searchable table columns?
3 replies
FFilament
Created by Jordy on 10/11/2023 in #❓┊help
Morph col filter
how does one go about filtering a morph col? I can assign a user or a team to a task.. want a searchable select filter for it but I cant figure out how to do it I was thinking of making 2 seperate ones (first select if you want to filter a User or Team, (assigned_type) when filled in (assigned_id) appears with Users or Teams its how I do create/update, but you cannot depend/have reactive filter inputs it seems) Is there an easier way to achieve what I want?
22 replies
FFilament
Created by Jordy on 8/8/2023 in #❓┊help
Show a warning before leaving page when you have filled in a form (save/discard changes)
I have a large form where the save button is far down, sometimes people forget to press it and leave that page. Whatever they have filled in will be lost.. Is there any way to give a warning before leaving the page if there has been a field filled in.. I cannot find something in the docs
78 replies
FFilament
Created by Jordy on 7/19/2023 in #❓┊help
Select Table record for bulk action on click
I want to select a record when clicked on, the CanSelectRecord trait only has a deselect all method, but no select one. I have tried
protected function getTableRecordActionUsing()
{
return fn($record) =>
$this->selectedTableRecords[] = $record;
}
protected function getTableRecordActionUsing()
{
return fn($record) =>
$this->selectedTableRecords[] = $record;
}
But this threw an error. Any help is appreciated
17 replies