src/MediaUploader.php
private function generateFilename()
    {
        if ($this->filename) {
            return $this->filename;
        }

        if ($this->hash_filename) {
            return $this->generateHash();
        }

        return $this->sanitizeFileName($this->source->filename());
    }
private function generateFilename()
    {
        if ($this->filename) {
            return $this->filename;
        }

        if ($this->hash_filename) {
            return $this->generateHash();
        }

        return $this->sanitizeFileName($this->source->filename());
    }
private function generateFilename ( ) { if ( $ this -> filename ) { return $ this -> filename ; } if ( $ this -> hash_filename ) { return $ this -> generateHash ( ) ; } return $ this -> sanitizeFileName ( $ this -> source -> filename ( ) ) ; }
Generate the model's filename.
@return string
Generate the model s filename .