public function handle(RemoveComponentCommand $command)
    {
        $component = $command->component;

        event(new ComponentWasRemovedEvent($this->auth->user(), $component));

        $component->delete();
    }
public function handle(RemoveComponentCommand $command)
    {
        $component = $command->component;

        event(new ComponentWasRemovedEvent($this->auth->user(), $component));

        $component->delete();
    }
public function handle ( RemoveComponentCommand $ command ) { $ component = $ command -> component ; event ( new ComponentWasRemovedEvent ( $ this -> auth -> user ( ) , $ component ) ) ; $ component -> delete ( ) ; }
Handle the remove component command.

@param \CachetHQ\Cachet\Bus\Commands\Component\RemoveComponentCommand $command

@return void
Handle the remove component command .