public function store()
    {
        try {
            $group = execute(new CreateComponentGroupCommand(
                Binput::get('name'),
                Binput::get('order', 0),
                Binput::get('collapsed', 0),
                Binput::get('visible', ComponentGroup::VISIBLE_AUTHENTICATED)
            ));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->item($group);
    }
public function store()
    {
        try {
            $group = execute(new CreateComponentGroupCommand(
                Binput::get('name'),
                Binput::get('order', 0),
                Binput::get('collapsed', 0),
                Binput::get('visible', ComponentGroup::VISIBLE_AUTHENTICATED)
            ));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->item($group);
    }
public function store ( ) { try { $ group = execute ( new CreateComponentGroupCommand ( Binput :: get ( 'name' ) , Binput :: get ( 'order' , 0 ) , Binput :: get ( 'collapsed' , 0 ) , Binput :: get ( 'visible' , ComponentGroup :: VISIBLE_AUTHENTICATED ) ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ group ) ; }
Create a new component group.

@return \Illuminate\Http\JsonResponse
Create a new component group .