public static function files($name = null)
    {
        $files = app()->request->getUploadedFiles();

        if (is_null($name)) {
            return $files;
        }

        if (isset($files[$name])) {
            return $files[$name];
        }

        return null;
    }
public static function files($name = null)
    {
        $files = app()->request->getUploadedFiles();

        if (is_null($name)) {
            return $files;
        }

        if (isset($files[$name])) {
            return $files[$name];
        }

        return null;
    }
public static function files ( $ name = null ) { $ files = app ( ) -> request -> getUploadedFiles ( ) ; if ( is_null ( $ name ) ) { return $ files ; } if ( isset ( $ files [ $ name ] ) ) { return $ files [ $ name ] ; } return null ; }
Retrieves Uploaded Files.

@param string $name Name of Uploaded Files parameter, if null then all value will be returned

@return \Psr\Http\Message\UploadedFileInterface|array|null
Retrieves Uploaded Files .