How to add a forward slash to the end of wordpress home?

It depands on property use_trailing_slashes of WP_Rewrite object, which is set based on your permalinks_structure.

Please open Settings -> Permalinks. If your Custom Structure ends with / all urls will be forsed to use slash, if no – no.