Tio Átila
Tio Átila
FFilament
Created by Tio Átila on 1/30/2025 in #❓┊help
Loding Table
Good morning guys! Is there any way to put a loading indicator in the filament tables, for when there is a delay? I didn't find anything in the documentation and deferLoading only does a "loading" when you enter the screen for the first time, if you do any other action in modal or for example it refreshes the table there is no loading indicator
26 replies
FFilament
Created by Tio Átila on 1/21/2025 in #❓┊help
Refresh badge count after filter table
Good morning, everyone! I have the following table with the tabs where there is a query for the badge count. The client wants that when he searches for someone in the table, the badge number reflects the result of the search. For example, if I searched for Alexandre and there are only 2 Alexandres in Active, I need to have the badge in 2 active ones, and in the rest 0.
2 replies
FFilament
Created by Tio Átila on 12/18/2024 in #❓┊help
Help with Filamanent Shield
Hi, people! I using the plugin https://filamentphp.com/plugins/bezhansalleh-shield, and I need to add permissions a two button in my page but she is without vinculed to Resource. I don't unknow how to this I trying many alternatives and I read the all documentations this plugin.
2 replies
FFilament
Created by Tio Átila on 11/25/2024 in #❓┊help
Modal confirmation before click save button in modal
Good Morning, everyone how are you? I need a help, I have the table where i have the edit action. when click save I nedd to show the modal confirmation before the saving information in database, because if the person accept I need cancel the flow sign the contract and starting the new flow, generating new contract and sending try again to subjects This is my actualy Action Edit
Tables\Actions\EditAction::make()
->modalWidth(MaxWidth::ScreenExtraLarge)
->closeModalByClickingAway(false)
->closeModalByEscaping(false)

->mutateFormDataUsing(function (array $data) {
return PrepareDataToSaveContractInformation::handle($data, $this->record->id);
})->after(function ($record) {
AuditMoviment::create(
[
'user_id' => auth()->user()->id,
'register_id' => $record->id,
'origin' => OriginEnum::STUDENT_CONTRACT_INFO,
'action' => ActionEnum::UPDATED,
]
);
(new \App\Actions\Student\Contracts\CreateContractStudent())->execute($record);
}),
Tables\Actions\EditAction::make()
->modalWidth(MaxWidth::ScreenExtraLarge)
->closeModalByClickingAway(false)
->closeModalByEscaping(false)

->mutateFormDataUsing(function (array $data) {
return PrepareDataToSaveContractInformation::handle($data, $this->record->id);
})->after(function ($record) {
AuditMoviment::create(
[
'user_id' => auth()->user()->id,
'register_id' => $record->id,
'origin' => OriginEnum::STUDENT_CONTRACT_INFO,
'action' => ActionEnum::UPDATED,
]
);
(new \App\Actions\Student\Contracts\CreateContractStudent())->execute($record);
}),
3 replies
FFilament
Created by Tio Átila on 3/3/2024 in #❓┊help
Error after upgrade filament 2 to 3
No description
1 replies
FFilament
Created by Tio Átila on 5/6/2023 in #❓┊help
Shield (Roles & Permissions)
4 replies