Laravel php artisan serves to simulate HTTPS

I searched to find out if there is a way by which I can mock SSL for local development using the Laravel wizards to serve HTTPS without any luck.

Is this possible, and if so, how?

I understand that this is a very general question, but I do not see anything in this in the search.

+5
source share
1 answer

Laravel uses the PHP5.4 php -S embedded development server ( http://php.net/manual/en/features.commandline.webserver.php ) for the artisan serve team (see Illuminate\Foundation\Console\ServeCommand ). This only supports simple HTTP, so no, this is not possible. It is best to use a firewall installed to work with SSL / TLS.

+5
source

Source: https://habr.com/ru/post/1206467/


All Articles