src/Config.php
/**
     * Save the configuration to file.
     *
     * @return self
     */
Save the configuration to file.
@return self
Save the configuration to file . @return self
public function save(): self
    {
        $file = $this->file();
        if (!is_dir($dir = dirname($file))) {
            mkdir($dir, 0700, true);
        }
        file_put_contents($file, json_encode($this->all(), JSON_PRETTY_PRINT));
        return $this;
    }
public function save ( ) : self { $ file = $ this -> file ( ) ; if ( ! is_dir ( $ dir = dirname ( $ file ) ) ) { mkdir ( $ dir , 0700 , true ) ; } file_put_contents ( $ file , json_encode ( $ this -> all ( ) , JSON_PRETTY_PRINT ) ) ; return $ this ; }
Save the configuration to file.
Save the configuration to file .