JonathanTorres\Construct\Helpers\Filesystem::copy PHP Method

copy() public method

Copy the given file a new location.
public copy ( string $path, string $target ) : boolean
$path string
$target string
return boolean
    public function copy($path, $target)
    {
        return copy($path, $target);
    }

Usage Example

Beispiel #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';
 }
All Usage Examples Of JonathanTorres\Construct\Helpers\Filesystem::copy