© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Maru

Action not working in livewire component

my actions button shown but can't perform anything
this is my code

Inside of my class page
class DetailUserVerificationRequest extends Page implements HasInfolists, HasActions
{
    use InteractsWithInfolists, InteractsWithActions;
    
    [other code]

    public function acceptAction(): Action
    {
        return Action::make('Konfirmasi')
            ->outlined()
            ->icon('heroicon-m-check')
            ->requiresConfirmation()
            ->action(fn () => $this->testCase());
    }

    public function testCase()
    {
        dd($this->request);
    }
}
class DetailUserVerificationRequest extends Page implements HasInfolists, HasActions
{
    use InteractsWithInfolists, InteractsWithActions;
    
    [other code]

    public function acceptAction(): Action
    {
        return Action::make('Konfirmasi')
            ->outlined()
            ->icon('heroicon-m-check')
            ->requiresConfirmation()
            ->action(fn () => $this->testCase());
    }

    public function testCase()
    {
        dd($this->request);
    }
}


Inside the view
<x-filament-panels::page>
    <div class="flex gap-3">
        {{ $this->acceptAction }}
    </div>

    [other code]

    <x-filament-actions::modals />
</x-filament-panels::page>
<x-filament-panels::page>
    <div class="flex gap-3">
        {{ $this->acceptAction }}
    </div>

    [other code]

    <x-filament-actions::modals />
</x-filament-panels::page>
Solution
Screenshot_2024-05-12_at_17.35.55.png
Jump to solution
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

Action modal in livewire component not working
FilamentFFilament / ❓┊help
3y ago
Action to a Livewire component not working.
FilamentFFilament / ❓┊help
3y ago
Livewire Component Not Working
FilamentFFilament / ❓┊help
2y ago
Action not trigging in a livewire component?
FilamentFFilament / ❓┊help
3y ago