When I try to get the link of my site (for example domain.com), I just do url(); and it returns me http://www.domain.com. but what if I want to get a secure url (https) in my production and to get unsecured (http) in my local?
I don't want to use secure_url() and secure_asset() functions because I'm working on localhost too.
Update
Is there any trick I can do if I'm using cloudflare?