src/Support/Stub.php
public function save($path, $filename)
    {
        if (!file_exists($path)) {
            $this->makeDirectory($path);
        }

        return file_put_contents($path . '/' . $filename, $this->getContents());
    }
public function save($path, $filename)
    {
        if (!file_exists($path)) {
            $this->makeDirectory($path);
        }

        return file_put_contents($path . '/' . $filename, $this->getContents());
    }
public function save ( $ path , $ filename ) { if ( ! file_exists ( $ path ) ) { $ this -> makeDirectory ( $ path ) ; } return file_put_contents ( $ path . '/' . $ filename , $ this -> getContents ( ) ) ; }
Save stub to specific path.

@param string $path
@param string $filename

@return bool
Save stub to specific path .