neerajk
neerajk
FFilament
Created by neerajk on 9/3/2024 in #❓┊help
Textarea not showing content and having JS errors
No description
7 replies
FFilament
Created by neerajk on 5/9/2024 in #❓┊help
Can I add multiple menu items for same resource e.g. My Contacts & All Contacts?
okay thanks I will try
6 replies
FFilament
Created by neerajk on 5/9/2024 in #❓┊help
Can I add multiple menu items for same resource e.g. My Contacts & All Contacts?
any example will be a great help
6 replies
FFilament
Created by neerajk on 5/9/2024 in #❓┊help
Can I add multiple menu items for same resource e.g. My Contacts & All Contacts?
I am not able to do this
6 replies
FFilament
Created by Wint on 2/25/2024 in #❓┊help
How to reuse a page (multiple navigation items with different data)
@Wint Did you able to find solution, I am looking for similar thing.
4 replies
FFilament
Created by Xavi on 1/25/2024 in #❓┊help
Model observer doesn't works on relation manager
3 replies
FFilament
Created by Noxo on 9/22/2023 in #❓┊help
afterCreate - hook
Okay, I will look into it thanks
6 replies
FFilament
Created by neerajk on 3/23/2024 in #❓┊help
Getting event after record creation (afterCreate not working here)
Thanks, I wil llook into it
4 replies
FFilament
Created by Noxo on 9/22/2023 in #❓┊help
afterCreate - hook
same issue @Noxo did you solve it?
6 replies
FFilament
Created by kool on 3/4/2024 in #❓┊help
Table Filters Count is Always Zero
No description
19 replies
FFilament
Created by kool on 3/4/2024 in #❓┊help
Table Filters Count is Always Zero
yes, when using indicateUsing both count and activity are working @Dennis Koch thanks
19 replies
FFilament
Created by kool on 3/4/2024 in #❓┊help
Table Filters Count is Always Zero
@Dennis Koch when using stardard filters, count is working fine and also its showing in "Active Filters" but when using Custom Filters both are missing.
19 replies
FFilament
Created by kool on 3/4/2024 in #❓┊help
Table Filters Count is Always Zero
Haven't checked it, I will confirm
19 replies
FFilament
Created by kool on 3/4/2024 in #❓┊help
Table Filters Count is Always Zero
at present I am only having custom filters and having same issue @Dennis Koch
19 replies
FFilament
Created by kool on 3/4/2024 in #❓┊help
Table Filters Count is Always Zero
@kool @Dennis Koch Having same issue, any clue how to fix?
19 replies
FFilament
Created by lucasdutra04 on 3/7/2024 in #❓┊help
Filter using columns
@lucasdutra04 I got my issue fixed like this
return $table
->query(
function () {
$filters = $this->tableFilters;

$dateRange = [];
if (!empty($filters['created_at']['created_from'])) {
$dateRange['from'] = $filters['created_at']['created_from'];
}
if (!empty($filters['created_at']['created_to'])) {
$dateRange['to'] = $filters['created_at']['created_to'];
}

return MyService::myCustomQuery($dateRange);
}
)
->columns([
Tables\Columns\TextColumn::make('id'),
Tables\Columns\TextColumn::make('name')->label('Name'),
...
])
->filters([
Tables\Filters\Filter::make('created_at')
->form([
DatePicker::make('created_from'),
DatePicker::make('created_to'),
])
]);
return $table
->query(
function () {
$filters = $this->tableFilters;

$dateRange = [];
if (!empty($filters['created_at']['created_from'])) {
$dateRange['from'] = $filters['created_at']['created_from'];
}
if (!empty($filters['created_at']['created_to'])) {
$dateRange['to'] = $filters['created_at']['created_to'];
}

return MyService::myCustomQuery($dateRange);
}
)
->columns([
Tables\Columns\TextColumn::make('id'),
Tables\Columns\TextColumn::make('name')->label('Name'),
...
])
->filters([
Tables\Filters\Filter::make('created_at')
->form([
DatePicker::make('created_from'),
DatePicker::make('created_to'),
])
]);
6 replies
FFilament
Created by lucasdutra04 on 3/7/2024 in #❓┊help
Filter using columns
@lucasdutra04
6 replies
FFilament
Created by lucasdutra04 on 3/7/2024 in #❓┊help
Filter using columns
any solution?
6 replies
FFilament
Created by neerajk on 2/20/2024 in #❓┊help
Repeater: How can I conditionally show/hide Delete button in Repeater?
8 replies
FFilament
Created by neerajk on 2/20/2024 in #❓┊help
Repeater: How can I conditionally show/hide Delete button in Repeater?
yes @toeknee and I am just able to get the active repeater state using the following code
->extraAttributes(function (array $arguments, Forms\Components\Repeater $component) {
$items = $component->getState();
$activeItem = $items[$arguments['item']];
if (isset($activeItem['id']))
return ['class' => 'hidden'];
return [];
})
->extraAttributes(function (array $arguments, Forms\Components\Repeater $component) {
$items = $component->getState();
$activeItem = $items[$arguments['item']];
if (isset($activeItem['id']))
return ['class' => 'hidden'];
return [];
})
I am can also use
visible
visible
or
hidden
hidden
instead of
extraAttribute
extraAttribute
but for some reason visible/hidden are not actually hiding the delete button but just making it disabled.
8 replies