You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using
Laravel Framework 10.48.16
eloquent-sortable 4.40
I cannot get the EloquentModelSortedEvent event to fire.
My Listener/event:
namespace App\Listeners;
use Spatie\EloquentSortable\EloquentModelSortedEvent as SortEvent;
class SortCompletedListener
{
public function handle(SortEvent $event): void {
dump($event);
}
}
EventServiceProvider.php :
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
protected $listen = [
\Spatie\EloquentSortable\EloquentModelSortedEvent::class => [
\App\Listeners\SortCompletedListener::class,
],
...
Using Filament to drag/sort. The sorting works perfectly, but the event never fires.
Perhaps I'm overlooking something?
Would love some insight, thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm using
Laravel Framework 10.48.16
eloquent-sortable 4.40
I cannot get the
EloquentModelSortedEvent
event to fire.My Listener/event:
EventServiceProvider.php :
Using Filament to drag/sort. The sorting works perfectly, but the event never fires.
Perhaps I'm overlooking something?
Would love some insight, thanks.
Beta Was this translation helpful? Give feedback.
All reactions