src/Traits/WorksWithFileUploads.php
protected function getFilename(UploadedFile $uploadedFile)
    {
        $extension = $uploadedFile->guessExtension();
        $filename = str_random().'.'.$extension;

        return $filename;
    }
protected function getFilename(UploadedFile $uploadedFile)
    {
        $extension = $uploadedFile->guessExtension();
        $filename = str_random().'.'.$extension;

        return $filename;
    }
protected function getFilename ( UploadedFile $ uploadedFile ) { $ extension = $ uploadedFile -> guessExtension ( ) ; $ filename = str_random ( ) . '.' . $ extension ; return $ filename ; }
Get the name of the file.

@param UploadedFile $uploadedFile The UploadedFile object.

@return string
Get the name of the file .