Ximenes
Ximenes
FFilament
Created by jaocero on 11/22/2023 in #❓┊help
Change modal submit button color
i've this piece of code and at this point my button wasn't being displayed so i made a new one, but it's white:
public function deleteAction(): Action
{
return Action::make('delete')
->color('danger')
->link()
->icon('heroicon-s-trash')
->requiresConfirmation()
->modalSubmitAction(false)
->extraModalFooterActions(fn (Action $action): array => [
$action->makeModalSubmitAction('ConfirmDeletion', arguments: ['another' => true]),
])
->action(function (array $arguments) {
$user = new User;
$apiToken = $user->getToken();

$attempt = Http::withToken($apiToken, $type = 'Bearer')->delete("http://localhost:8001/api/v1/customers/{$arguments['customer']}", [])->json();

if($attempt == null){
Notification::make()
->title("Unsuccessful deletion!")
->danger()
->send();
}

Notification::make()
->title("Deleted!")
->danger()
->send();

$this->syncData();
});
}
public function deleteAction(): Action
{
return Action::make('delete')
->color('danger')
->link()
->icon('heroicon-s-trash')
->requiresConfirmation()
->modalSubmitAction(false)
->extraModalFooterActions(fn (Action $action): array => [
$action->makeModalSubmitAction('ConfirmDeletion', arguments: ['another' => true]),
])
->action(function (array $arguments) {
$user = new User;
$apiToken = $user->getToken();

$attempt = Http::withToken($apiToken, $type = 'Bearer')->delete("http://localhost:8001/api/v1/customers/{$arguments['customer']}", [])->json();

if($attempt == null){
Notification::make()
->title("Unsuccessful deletion!")
->danger()
->send();
}

Notification::make()
->title("Deleted!")
->danger()
->send();

$this->syncData();
});
}
7 replies
FFilament
Created by jaocero on 11/22/2023 in #❓┊help
Change modal submit button color
can you show how you used it?
7 replies
TLCTuto's Laravel Corner
Created by Ximenes on 1/10/2024 in #💡filament
Custom page with custom table
I've finished the custom table. At this point, i don't think i need sushi anymore. Let's see what happens next...
15 replies
TLCTuto's Laravel Corner
Created by Ximenes on 1/10/2024 in #💡filament
Custom page with custom table
thank you @tuto1902 and @Abel Cobreros!
15 replies
TLCTuto's Laravel Corner
Created by Ximenes on 1/10/2024 in #💡filament
Custom page with custom table
i honestly dont know to implement
15 replies
TLCTuto's Laravel Corner
Created by Ximenes on 1/10/2024 in #💡filament
Custom page with custom table
do you have more tips about the sync way?
15 replies
TLCTuto's Laravel Corner
Created by Ximenes on 1/10/2024 in #💡filament
Custom page with custom table
thank you
15 replies
TLCTuto's Laravel Corner
Created by Ximenes on 1/10/2024 in #💡filament
Custom page with custom table
if anyone need this just acess the github, it´s now working.
15 replies
FFilament
Created by Haider Ghaleb on 9/23/2023 in #❓┊help
Table Builder to read from external API and apply custom pagination
did u solve your problem? i need the same help
10 replies