© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
1 reply
Zwifs

Change action color and "reload" page

Hi!

I'm working on a simple resource, and want to add a refresh button to delete the cache, I want to change the action color and reload the form when done. How can I implement this? For the color I found the ->color method but that did not do anything.

class ManageChannels extends ManageRecords
{
    protected static string $resource = ChannelResource::class;

    protected function getHeaderActions(): array
    {
        return [
            Actions\CreateAction::make(),
            Actions\Action::make('refresh')
                ->action(function () {
                    Cache::delete('discord_service.getChannelList');
                }),
        ];
    }
}
class ManageChannels extends ManageRecords
{
    protected static string $resource = ChannelResource::class;

    protected function getHeaderActions(): array
    {
        return [
            Actions\CreateAction::make(),
            Actions\Action::make('refresh')
                ->action(function () {
                    Cache::delete('discord_service.getChannelList');
                }),
        ];
    }
}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Reload Page after custom action ends.
FilamentFFilament / ❓┊help
3y ago
Reload table results from Page Action
FilamentFFilament / ❓┊help
3y ago
Reload Page on table row action success
FilamentFFilament / ❓┊help
2y ago
reload \ refresh relation manager table on page action
FilamentFFilament / ❓┊help
17mo ago