Laravel php artisan serve to mimic HTTPS

Jazzy picture Jazzy · Nov 8, 2014 · Viewed 22.4k times · Source

I have been searching around to see if there is a way I can mock SSL for local development using Laravel's artisan to serve HTTPS with no luck.

Is this possible and if so, how?

I understand this is a very general question, but I am not seeing anything on this in searches.

Answer

Іван Худа picture Іван Худа · Feb 16, 2019

You can use ngrok for that

php artisan serve
cd <path-to-ngrok>
./ngrok http localhost:8000

https://ngrok.com/