public function getUploadPath(UploadedFile $file)
    {
        if (($path = $this->uploadPath)) {
            if (is_callable($path)) {
                $path = call_user_func($path, $file);
            }

            return trim($path, '/');
        }

        return $this->getDefaultUploadPath($file);
    }
public function getUploadPath(UploadedFile $file)
    {
        if (($path = $this->uploadPath)) {
            if (is_callable($path)) {
                $path = call_user_func($path, $file);
            }

            return trim($path, '/');
        }

        return $this->getDefaultUploadPath($file);
    }
public function getUploadPath ( UploadedFile $ file ) { if ( ( $ path = $ this -> uploadPath ) ) { if ( is_callable ( $ path ) ) { $ path = call_user_func ( $ path , $ file ) ; } return trim ( $ path , '/' ) ; } return $ this -> getDefaultUploadPath ( $ file ) ; }
Get relative path of the upload file.

@param \Illuminate\Http\UploadedFile $file

@return \Closure|mixed|null|string
Get relative path of the upload file .