src/Build/Publishers/Compile.php
protected function write($destination, $content)
    {
        $directory = dirname($destination);

        if ( ! $this->files->exists($directory)) {
            $this->files->makeDirectory($directory, 0755, true);
        }

        return (bool) $this->files->put($destination, $content);
    }
protected function write($destination, $content)
    {
        $directory = dirname($destination);

        if ( ! $this->files->exists($directory)) {
            $this->files->makeDirectory($directory, 0755, true);
        }

        return (bool) $this->files->put($destination, $content);
    }
protected function write ( $ destination , $ content ) { $ directory = dirname ( $ destination ) ; if ( ! $ this -> files -> exists ( $ directory ) ) { $ this -> files -> makeDirectory ( $ directory , 0755 , true ) ; } return ( bool ) $ this -> files -> put ( $ destination , $ content ) ; }
Write file contents, creating any necessary subdirectories.

@param string $destination
@param string $content
@return bool
Write file contents creating any necessary subdirectories .