TK
TK
FFilament
Created by TK on 10/4/2024 in #❓┊help
Change order of top bar icons
That's too bad. I hoped Filament had some more control over the topbar. Thanks for your response.
4 replies
FFilament
Created by TK on 10/4/2024 in #❓┊help
Change order of top bar icons
Anyone?
4 replies
FFilament
Created by TK on 6/25/2024 in #❓┊help
Disable search on select multiple
Anyone got an idea?
2 replies
FFilament
Created by TK on 6/25/2024 in #❓┊help
How to replace the reorder indicator?
I know, but by definition this is a breaking change. I'll see what I can do
7 replies
FFilament
Created by TK on 6/25/2024 in #❓┊help
How to replace the reorder indicator?
Hmm.. not the best solution, but it's a way. Any promise on this coming to Filament? As in, more control over these small labels overall through the application?
7 replies
FFilament
Created by TK on 6/25/2024 in #❓┊help
How to replace the reorder indicator?
@Leandro Ferreira problem is that it doesn't contain a variable atm. I want to make it universal. So for each different model I have another sentence, like so: 'reorder_indicator' => 'Drag and drop the :entity into order.' But since this translation is also used by Filament itself, it breaks when I add a variable.
7 replies
FFilament
Created by DonatasP on 10/25/2023 in #❓┊help
Multiple date selection in datepicker
Best for now is using a repeater field
2 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
Just for documentation sake, here's full the (workaround) solution:
return $table
->...
->actions([
ActionGroup::make([
Action::make('...')
->...
->url(function ($record) {
$query = http_build_query([
'tableFilters' => [
'unit' => [
'reservable' => [
'code' => $record->code,
],
],
],
]);

return ListOtherResourceFilament::getUrl() . '?' . urldecode($query);
})
,
]),
]);
return $table
->...
->actions([
ActionGroup::make([
Action::make('...')
->...
->url(function ($record) {
$query = http_build_query([
'tableFilters' => [
'unit' => [
'reservable' => [
'code' => $record->code,
],
],
],
]);

return ListOtherResourceFilament::getUrl() . '?' . urldecode($query);
})
,
]),
]);
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
I'll report the bug 👍
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
workaround works! thanks!
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
@dissto 1 question though, whats the difference between using ->url() and ->action() with a redirect?
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
Let me try your workaround..
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
Found it, it's a Filament bug. Square brackets [ ] should always be encoded, since not all browser recognizes them. The are not part of the allowed characters list. So Filament should always encode these, but they are not. Hence my problem: Laravel encodes them, Filament does not > duplicate values!
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
Laravel encodes the [ ]... since it's not a part of:
public $dontEncode = [
'%2F' => '/',
'%40' => '@',
'%3A' => ':',
'%3B' => ';',
'%2C' => ',',
'%3D' => '=',
'%2B' => '+',
'%21' => '!',
'%2A' => '*',
'%7C' => '|',
'%3F' => '?',
'%26' => '&',
'%23' => '#',
'%25' => '%',
];
public $dontEncode = [
'%2F' => '/',
'%40' => '@',
'%3A' => ':',
'%3B' => ';',
'%2C' => ',',
'%3D' => '=',
'%2B' => '+',
'%21' => '!',
'%2A' => '*',
'%7C' => '|',
'%3F' => '?',
'%26' => '&',
'%23' => '#',
'%25' => '%',
];
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
Don't get me wrong, it applies the filter, but whenever I add another or change the existing one to another value, the filter is being re-applied to the whole url, ending up with: https://example.local/....?tableFilters%5Bunit%5D%5Breservable%5D%5Bcode%5D=UN100000&tableFilters[unit][reservable][code]=UN100001
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
The tableFilters is now part of the url and not the filter part.. thats why Filament doesn't change it.. and keeps adding
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
@dissto Same thing.. 0 difference
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
Not sure if it should encode.. I hoped not. Let me try your example
20 replies
FFilament
Created by TK on 6/10/2024 in #❓┊help
How to route to a page with a given filter?
That gets combined with the already active filters, and I end up with duplicate filters...
20 replies