public function allToArray()
    {
        $config = [];

        try {
            foreach ($this->findAll() as $object) {
                $key = $object->key_name;
                if ($object->group_name != 'config') {
                    $config[$object->group_name][$key] = $object->value;
                } else {
                    $config[$key] = $object->value;
                }
            }
        } catch (Exception $e) {
            Log::error($e->getMessage());
        }

        return $config;
    }
public function allToArray()
    {
        $config = [];

        try {
            foreach ($this->findAll() as $object) {
                $key = $object->key_name;
                if ($object->group_name != 'config') {
                    $config[$object->group_name][$key] = $object->value;
                } else {
                    $config[$key] = $object->value;
                }
            }
        } catch (Exception $e) {
            Log::error($e->getMessage());
        }

        return $config;
    }
public function allToArray ( ) { $ config = [ ] ; try { foreach ( $ this -> findAll ( ) as $ object ) { $ key = $ object -> key_name ; if ( $ object -> group_name != 'config' ) { $ config [ $ object -> group_name ] [ $ key ] = $ object -> value ; } else { $ config [ $ key ] = $ object -> value ; } } } catch ( Exception $ e ) { Log :: error ( $ e -> getMessage ( ) ) ; } return $ config ; }
Build Settings Array.

@return array
Build Settings Array .