src/Models/Config.php
public static function fetchAllGroups()
    {
        $model = new self;

        $result = [];
        try {
            foreach ($model->select('group')->distinct()->get() as $row) {
                $result[] = $row->group;
            }
        } catch (\Exception $e) {
            // Do nothing.
        }

        return $result;
    }
public static function fetchAllGroups()
    {
        $model = new self;

        $result = [];
        try {
            foreach ($model->select('group')->distinct()->get() as $row) {
                $result[] = $row->group;
            }
        } catch (\Exception $e) {
            // Do nothing.
        }

        return $result;
    }
public static function fetchAllGroups ( ) { $ model = new self ; $ result = [ ] ; try { foreach ( $ model -> select ( 'group' ) -> distinct ( ) -> get ( ) as $ row ) { $ result [ ] = $ row -> group ; } } catch ( \ Exception $ e ) { // Do nothing. } return $ result ; }
Return an array of all groups.

@return array
Return an array of all groups .