@bashy I liked your suggestion of using a named route. So I changed the blade file and pushed it up to the server. Then I registered a new user on the live website (not local). I get the email. But it still has the localhost root as indicated above.
Just to check i ssh into server created a fake route with var_dump(Request::root()) and when i went to the route it gave me http://xxx.xxx.xxx.xxx with the correct ipaddress. So I am baffled. any ideas.
Like I said it was working perfectly when I first added this functionality. But not now. The only thing I did that may or may not have caused some problem was that after a recent deployment when I looked at the logs I was seeing
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
So I ran composer update --bloc as suggested on one of the blogs and the warning went away.
To ask in a different way wherein Laravel is '/' defined
Again any ideas how to fix this problem.
Thx