protected function createFile($file, $stub)
    {
        $path = dirname($file);
        $this->createDirectory($path);

        $this->putContentInFile($file, $stub);

        return $this;
    }
protected function createFile($file, $stub)
    {
        $path = dirname($file);
        $this->createDirectory($path);

        $this->putContentInFile($file, $stub);

        return $this;
    }
protected function createFile ( $ file , $ stub ) { $ path = dirname ( $ file ) ; $ this -> createDirectory ( $ path ) ; $ this -> putContentInFile ( $ file , $ stub ) ; return $ this ; }
It creates a new file. If the target path does not exists one will be created.

@param string $file
@param string $stub

@return $this
It creates a new file . If the target path does not exists one will be created .