Nwidart\Modules\Support\Stub::saveTo PHP Method

saveTo() public method

Save stub to specific path.
public saveTo ( string $path, string $filename ) : boolean
$path string
$filename string
return boolean
    public function saveTo($path, $filename)
    {
        return file_put_contents($path . '/' . $filename, $this->getContents());
    }