events())->filter(function ($value) { return $value->mutexName() == $this->argument('id'); })->each(function ($event) { $event->finish($this->laravel, $this->argument('code')); $this->laravel->make(Dispatcher::class)->dispatch(new ScheduledBackgroundTaskFinished($event)); }); } }