private function generateFilename()
    {
        $filename = str_random(100) . "." . $this->extension;

        if(Storage::exists($this->folder . '/' . $filename))
        {
            $this->generateFilename();
        }

        return $filename;
    }
private function generateFilename()
    {
        $filename = str_random(100) . "." . $this->extension;

        if(Storage::exists($this->folder . '/' . $filename))
        {
            $this->generateFilename();
        }

        return $filename;
    }
private function generateFilename ( ) { $ filename = str_random ( 100 ) . "." . $ this -> extension ; if ( Storage :: exists ( $ this -> folder . '/' . $ filename ) ) { $ this -> generateFilename ( ) ; } return $ filename ; }
Generate random string for a filename

@param string $ext
@param string $location
@return string
Generate random string for a filename