Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cancelik's avatar

Https on Laravel Valet

Is it possible to use https for valet domains or does it have to be http://{folder-name}.dev ?

Thanks.

0 likes
4 replies
rogierv's avatar

If you update tot 1.1.3 it changes the inbuild php server with caddyserver and it should work, even with letsencrypt.

cancelik's avatar

I just updated to 1.1.3 and https is still not working. I was using secure_asset() and secure_url() functions but I guess I will just update them to assest() and url() for now unless I'm missing something.

ibnuh's avatar

By default, Valet serves sites over plain HTTP. However, if you would like to serve a site over encrypted TLS using HTTP/2, use the secure command. For example, if your site is being served by Valet on the laravel.test domain, you should run the following command to secure it:

valet secure laravel

From https://laravel.com/docs/5.6/valet#securing-sites

9 likes

Please or to participate in this conversation.