public function getUploadFileName(UploadedFile $file)
    {
        if (is_callable($this->uploadFileNameRule)) {
            return call_user_func($this->uploadFileNameRule, $file);
        }

        return $this->getDefaultFileName($file);
    }
public function getUploadFileName(UploadedFile $file)
    {
        if (is_callable($this->uploadFileNameRule)) {
            return call_user_func($this->uploadFileNameRule, $file);
        }

        return $this->getDefaultFileName($file);
    }
public function getUploadFileName ( UploadedFile $ file ) { if ( is_callable ( $ this -> uploadFileNameRule ) ) { return call_user_func ( $ this -> uploadFileNameRule , $ file ) ; } return $ this -> getDefaultFileName ( $ file ) ; }
Get a file name of the upload file.

@param \Illuminate\Http\UploadedFile $file

@return mixed|string
Get a file name of the upload file .