src/MediaUploader.php
public function toDirectory($directory)
    {
        $this->directory = trim($this->sanitizePath($directory), DIRECTORY_SEPARATOR);

        return $this;
    }
public function toDirectory($directory)
    {
        $this->directory = trim($this->sanitizePath($directory), DIRECTORY_SEPARATOR);

        return $this;
    }
public function toDirectory ( $ directory ) { $ this -> directory = trim ( $ this -> sanitizePath ( $ directory ) , DIRECTORY_SEPARATOR ) ; return $ this ; }
Set the directory relative to the filesystem disk at which the file will be saved.
@param string $directory
@return static
Set the directory relative to the filesystem disk at which the file will be saved .