How to implement HTTPS in laravel 5.4

前端 未结 4 2152
孤城傲影
孤城傲影 2021-01-23 03:28

I have a shared hosting with OVH(France) and i have the \"Let\'s Encrypt\" certificate for my domain.

however, i looked everywhere for redirecting all requests from HTTP

4条回答
  •  忘掉有多难
    2021-01-23 04:25

    You can set 'url' => env('APP_URL', 'https://localhost'), in config/app.php. That should do the trick.

提交回复
热议问题