auth = $auth; } /** * Handle the remove component command. * * @param \CachetHQ\Cachet\Bus\Commands\Component\RemoveComponentCommand $command * * @return void */ public function handle(RemoveComponentCommand $command) { $component = $command->component; event(new ComponentWasRemovedEvent($this->auth->user(), $component)); $component->delete(); } }