默认的竟然不支持,经过一顿猛如虎的操作,终于找到解决办法

最终在看到这个页面,试了后才算是解决了问题:http://landcareweb.com/questions/17951/laravelcong-lu-you-sheng-cheng-an-quan-de-https-url

让Laravel支持https

public function boot()
    {
        //
        $this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');      //让Laravel支持https,且区分本地

    }

而且发现https走的路径竟然和http不一样,Laravel真是博大精深啊!

相关文章:

  • 2022-03-05
  • 2021-04-08
  • 2022-02-27
  • 2021-12-14
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-06-29
  • 2022-12-23
  • 2021-07-05
  • 2021-08-19
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案