Skip to content
Featherwebs

Use HTTPS

To secure your Laravel application, you should always use HTTPS to encrypt traffic between the browser and the server. You can enable HTTPS by obtaining a TLS/SSL certificate for your domain and configuring your web server to use it.

For example, if you are using Apache, you can enable HTTPS by adding the following lines to your virtual host configuration:

SSLEngine on
SSLCertificateFile /path/to/your/cert.pem
SSLCertificateKeyFile /path/to/your/privatekey.pem