FilamentF
Filament2y ago
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);
    }
}


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>
Was this page helpful?