Place this in the AppServiceProvider in the boot() method
if($this->app->environment('production')) {
\URL::forceScheme('https');
}
More Related Contents:
- Force SSL/https using .htaccess and mod_rewrite
- Session lost when switching from HTTP to HTTPS in PHP
- A problem occurred somewhere in the SSL/TLS handshake
- How to get SSL certificate info with CURL in PHP?
- Disable certificate verification in PHP SoapClient
- PHP CURL CURLOPT_SSL_VERIFYPEER ignored
- Setting up SSL on a local xampp/apache server
- Switching between HTTP and HTTPS pages with secure session-cookie
- cURL requires CURLOPT_SSL_VERIFYPEER=FALSE
- How can I have CodeIgniter load specific pages using SSL?
- PHP – SSL certificate error: unable to get local issuer certificate
- How to get file_get_contents() to work with HTTPS?
- file_get_contents(): SSL operation failed with code 1, Failed to enable crypto
- PHP CURL & HTTPS
- HTTPS and SSL3_GET_SERVER_CERTIFICATE:certificate verify failed, CA is OK
- Can’t connect to HTTPS site using cURL. Returns 0 length content instead. What can I do?
- Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?
- How to login in with Curl and SSL and cookies
- PHP Get Site URL Protocol – http vs https
- php ratchet websocket SSL connect?
- Laravel 5.2 $errors not appearing in Blade
- SSL operation failed with code 1: dh key too small
- You must enable the openssl extension to download files via https
- Uncaught ReflectionException: Class log does not exist Laravel 5.2
- GMail fsockopen(): SSL operation failed error with Codeigniter and XAMPP
- SOAP-ERROR: Parsing WSDL: Couldn’t load from
- Codeigniter Routes regex – using dashes in controller/method names
- Laravel 5.2 CORS, GET not working with preflight OPTIONS
- Laravel 5 Socialite – cURL error 77: error setting certificate verify locations
- How to enable SSL in Wamp Server?