src/Console/InitCommand.php
protected function createYaml(array $config)
    {
        $nested = [];

        array_walk(array_dot($config), function ($value, $key) use (&$nested) {
            array_set($nested, $key, $value);
        });

        return $this->yaml->dump($nested, 4);
    }
protected function createYaml(array $config)
    {
        $nested = [];

        array_walk(array_dot($config), function ($value, $key) use (&$nested) {
            array_set($nested, $key, $value);
        });

        return $this->yaml->dump($nested, 4);
    }
protected function createYaml ( array $ config ) { $ nested = [ ] ; array_walk ( array_dot ( $ config ) , function ( $ value , $ key ) use ( & $ nested ) { array_set ( $ nested , $ key , $ value ) ; } ) ; return $ this -> yaml -> dump ( $ nested , 4 ) ; }
Create a YML string from a dotted array.

@param array $config
@return string
Create a YML string from a dotted array .