public function handle(CreateComponentGroupCommand $command)
    {
        $group = ComponentGroup::create([
            'name'      => $command->name,
            'order'     => $command->order,
            'collapsed' => $command->collapsed,
            'visible'   => $command->visible,
        ]);

        event(new ComponentGroupWasCreatedEvent($this->auth->user(), $group));

        return $group;
    }
public function handle(CreateComponentGroupCommand $command)
    {
        $group = ComponentGroup::create([
            'name'      => $command->name,
            'order'     => $command->order,
            'collapsed' => $command->collapsed,
            'visible'   => $command->visible,
        ]);

        event(new ComponentGroupWasCreatedEvent($this->auth->user(), $group));

        return $group;
    }
public function handle ( CreateComponentGroupCommand $ command ) { $ group = ComponentGroup :: create ( [ 'name' => $ command -> name , 'order' => $ command -> order , 'collapsed' => $ command -> collapsed , 'visible' => $ command -> visible , ] ) ; event ( new ComponentGroupWasCreatedEvent ( $ this -> auth -> user ( ) , $ group ) ) ; return $ group ; }
Handle the create component group command.

@param \CachetHQ\Cachet\Bus\Commands\ComponentGroup\CreateComponentGroupCommand $command

@return \CachetHQ\Cachet\Models\ComponentGroup
Handle the create component group command .