public function moveFile($oldPath, $newPath, $isRename = false)
    {
        $oldPath = self::validatePath($oldPath);
        $fullOldPath = $this->getMediaPath($oldPath);

        $newPath = self::validatePath($newPath);
        $fullNewPath = $this->getMediaPath($newPath);

        return $this->getStorageDisk()->move($fullOldPath, $fullNewPath);
    }
public function moveFile($oldPath, $newPath, $isRename = false)
    {
        $oldPath = self::validatePath($oldPath);
        $fullOldPath = $this->getMediaPath($oldPath);

        $newPath = self::validatePath($newPath);
        $fullNewPath = $this->getMediaPath($newPath);

        return $this->getStorageDisk()->move($fullOldPath, $fullNewPath);
    }
public function moveFile ( $ oldPath , $ newPath , $ isRename = false ) { $ oldPath = self :: validatePath ( $ oldPath ) ; $ fullOldPath = $ this -> getMediaPath ( $ oldPath ) ; $ newPath = self :: validatePath ( $ newPath ) ; $ fullNewPath = $ this -> getMediaPath ( $ newPath ) ; return $ this -> getStorageDisk ( ) -> move ( $ fullOldPath , $ fullNewPath ) ; }
Moves a file to another location.
@param string $oldPath Specifies the original path of the file.
@param string $newPath Specifies the new path of the file.
@return boolean
Moves a file to another location .