src/Support/Concerns/Uploadable.php
protected function getUploadedFilename(UploadedFile $file): string
    {
        $extension = $file->getClientOriginalExtension();

        return \sprintf('%s.%s', Str::random(10), $extension);
    }
protected function getUploadedFilename(UploadedFile $file): string
    {
        $extension = $file->getClientOriginalExtension();

        return \sprintf('%s.%s', Str::random(10), $extension);
    }
protected function getUploadedFilename ( UploadedFile $ file ) : string { $ extension = $ file -> getClientOriginalExtension ( ) ; return \ sprintf ( '%s.%s' , Str :: random ( 10 ) , $ extension ) ; }
Get uploaded filename.

@param  \Symfony\Component\HttpFoundation\File\UploadedFile  $file

@return string
Get uploaded filename .