© 2026 Hedgehog Software, LLC

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

Table rows Action->action() not firing

I have the below snippet (along with a few other actions) and I had initially been trying with
\Log::info('test');
\Log::info('test');
, but it wasn't being fired so I thought I'd try
dd()
dd()
and it seems that the ->action part is never being reached at all.

I tried duplicating another custom Action class
class FollowShowAction extends Action {...}
class FollowShowAction extends Action {...}
and just changing the ->action() to trigger a Notification, but it's still not firing, however the original custom Action I cloned from
class BlockUserAction extens Action {...}
class BlockUserAction extens Action {...}
works perfectly fine
I've also shared the custom class action I created below.
If I
\Log::info('anything');
\Log::info('anything');
in the
setUp()
setUp()
function, it logs correctly, and if I use
->url()
->url()
instead of
->action()
->action()
it works too. I just can't work out why it works for the action I duplicated from, but not this one


The attached video is of the snippet immediately below:
->actions([
    ActionGroup::make([          
        Action::make('follow')
            ->icon('heroicon-o-bell-alert')
            ->action(fn () => dd()),
        ]),
        // ...
        // ...
    ])
->actions([
    ActionGroup::make([          
        Action::make('follow')
            ->icon('heroicon-o-bell-alert')
            ->action(fn () => dd()),
        ]),
        // ...
        // ...
    ])


Custom class action (also not working)
<?php

namespace App\Filament\Actions;

use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Database\Eloquent\Model;

class FollowShowAction extends Action
{
    public static function getDefaultName(): ?string
    {
        return 'follow-show';
    }

    protected function setUp(): void
    {
        parent::setUp();

        $this->label('Follow Show')
            ->icon('heroicon-o-bell-alert')
            ->action(function (Model $record) {
                    Notification::make()
                        ->title('Show followed')
                        ->success()
                        ->send();
            });
    }
}
<?php

namespace App\Filament\Actions;

use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Database\Eloquent\Model;

class FollowShowAction extends Action
{
    public static function getDefaultName(): ?string
    {
        return 'follow-show';
    }

    protected function setUp(): void
    {
        parent::setUp();

        $this->label('Follow Show')
            ->icon('heroicon-o-bell-alert')
            ->action(function (Model $record) {
                    Notification::make()
                        ->title('Show followed')
                        ->success()
                        ->send();
            });
    }
}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Filament Table Text Column action not firing
FilamentFFilament / ❓┊help
16mo ago
Export Action - Update Table Rows
FilamentFFilament / ❓┊help
3y ago
Table actions not firing
FilamentFFilament / ❓┊help
2y ago
mutateRecordDataUsing in Replicate Action not firing
FilamentFFilament / ❓┊help
8mo ago