7 months ago

Why is asset() not secure?

Posted 7 months ago by JohnnyW2001

According to Laravel's documentation: "The asset function generates a URL for an asset using the current scheme of the request (HTTP or HTTPS)"

I have a website hosted at https:// but Laravel is still generating http:// when I used asset(). I don't want to have to force HTTPS through forceScheme or anything, as I've never had to do this before with Laravel and https:// connections. The documentation states it will use the "current scheme".

Please sign in or create an account to participate in this conversation.