protected function seedComponentGroups()
    {
        $defaultGroups = [
            [
                'name'      => 'Websites',
                'order'     => 1,
                'collapsed' => 0,
                'visible'   => ComponentGroup::VISIBLE_AUTHENTICATED,
            ], [
                'name'      => 'Alt Three',
                'order'     => 2,
                'collapsed' => 1,
                'visible'   => ComponentGroup::VISIBLE_GUEST,
            ],
        ];

        ComponentGroup::truncate();

        foreach ($defaultGroups as $group) {
            ComponentGroup::create($group);
        }
    }
protected function seedComponentGroups()
    {
        $defaultGroups = [
            [
                'name'      => 'Websites',
                'order'     => 1,
                'collapsed' => 0,
                'visible'   => ComponentGroup::VISIBLE_AUTHENTICATED,
            ], [
                'name'      => 'Alt Three',
                'order'     => 2,
                'collapsed' => 1,
                'visible'   => ComponentGroup::VISIBLE_GUEST,
            ],
        ];

        ComponentGroup::truncate();

        foreach ($defaultGroups as $group) {
            ComponentGroup::create($group);
        }
    }
protected function seedComponentGroups ( ) { $ defaultGroups = [ [ 'name' => 'Websites' , 'order' => 1 , 'collapsed' => 0 , 'visible' => ComponentGroup :: VISIBLE_AUTHENTICATED , ] , [ 'name' => 'Alt Three' , 'order' => 2 , 'collapsed' => 1 , 'visible' => ComponentGroup :: VISIBLE_GUEST , ] , ] ; ComponentGroup :: truncate ( ) ; foreach ( $ defaultGroups as $ group ) { ComponentGroup :: create ( $ group ) ; } }
Seed the component groups table.

@return void
Seed the component groups table .