How to return the site url without a slash on the end? Url :: home returns with a slash on the end

Url::home(true) 

http :: //site.com/

How to get

http :: //site.com

?

    1 answer 1

    Use this code:

     Url::base(true); 
    • Thank you so much. - Guest