schedule = $schedule; parent::__construct(); } /** * Execute the console command. * * @return void */ public function handle() { collect($this->schedule->events())->filter(function ($value) { return $value->mutexName() == $this->argument('id'); })->each->callAfterCallbacks($this->laravel); } }