Laravel php artisan serve to mimic HTTPS



PHP Snippet 1:

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

PHP Snippet 2:

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "c:\pathToYourProject\projectFolder\public"
    <Directory "c:\pathToYourProject\projectFolder\public">
        Options All
        AllowOverride All
    </Directory>
</VirtualHost>

# this should ensure https (this is mentioned in the stackoverflow post, that I linked as useful
<VirtualHost *:443>
    ServerName localhost
    DocumentRoot "c:\pathToYourProject\projectFolder\public"
    SSLEngine on
    SSLCertificateFile "conf\ssl.crt\server.crt"
    SSLCertificateKeyFile "conf\ssl.key\server.key"
    <Directory "c:\pathToYourProject\projectFolder\public">
        Options All
        AllowOverride All
    </Directory>
</VirtualHost>