copy() 공개 메소드

Copy the given file a new location.
public copy ( string $path, string $target ) : boolean
$path string
$target string
리턴 boolean
예제 #1
0
 /**
  * Generate .env environment files.
  *
  * @return void
  **/
 protected function environmentFiles()
 {
     $this->file->copy(__DIR__ . '/stubs/env.stub', $this->projectLower . '/' . '.env');
     $this->file->copy(__DIR__ . '/stubs/env.stub', $this->projectLower . '/' . '.env.example');
     $this->exportIgnores[] = '.env';
 }
예제 #2
0
 /**
  * Generate Code of Conduct file.
  *
  * @return void
  */
 protected function codeOfConduct()
 {
     $this->file->copy(__DIR__ . '/stubs/CONDUCT.stub', $this->projectLower . '/' . 'CONDUCT.md');
     $this->exportIgnores[] = 'CONDUCT.md';
 }