protected function getStoreName(UploadedFile $file)
    {
        if ($this->useUniqueName) {
            return $this->generateUniqueName($file);
        }

        if ($this->useSequenceName) {
            return $this->generateSequenceName($file);
        }

        if ($this->name instanceof \Closure) {
            return $this->name->call($this, $file);
        }

        if (is_string($this->name)) {
            return $this->name;
        }

        return $file->getClientOriginalName();
    }
protected function getStoreName(UploadedFile $file)
    {
        if ($this->useUniqueName) {
            return $this->generateUniqueName($file);
        }

        if ($this->useSequenceName) {
            return $this->generateSequenceName($file);
        }

        if ($this->name instanceof \Closure) {
            return $this->name->call($this, $file);
        }

        if (is_string($this->name)) {
            return $this->name;
        }

        return $file->getClientOriginalName();
    }
protected function getStoreName ( UploadedFile $ file ) { if ( $ this -> useUniqueName ) { return $ this -> generateUniqueName ( $ file ) ; } if ( $ this -> useSequenceName ) { return $ this -> generateSequenceName ( $ file ) ; } if ( $ this -> name instanceof \ Closure ) { return $ this -> name -> call ( $ this , $ file ) ; } if ( is_string ( $ this -> name ) ) { return $ this -> name ; } return $ file -> getClientOriginalName ( ) ; }
Get store name of upload file.

@param UploadedFile $file

@return string
Get store name of upload file .