File::copy PHP Method

copy() public static method

Copy a file to a new location.
public static copy ( string $path, string $target ) : boolean
$path string
$target string
return boolean
        public static function copy($path, $target)
        {
            return \Illuminate\Filesystem\Filesystem::copy($path, $target);
        }

Usage Example

Ejemplo n.º 1
0
 protected function copyFile($file, $target)
 {
     if (!\File::exists($target)) {
         return \File::copy($file, $target);
     }
     return false;
 }
All Usage Examples Of File::copy