[英]Laravel redirect to [https] not [http]
Please help me out for below question. 请帮我解决以下问题。
I am using laravel version 5. 我正在使用laravel版本5。
1) In pagination, 1)在分页中
{!! $list->appends($form)->links() !!}
2) In redirect action, 2)在重定向操作中,
return redirect()->action('toute@method', [$testId]);
Both redirect to me [https] not [http]. 两者都重定向到我[https]而不是[http]。
Thank you ! 谢谢 !
I think this code is worth a try. 我认为这段代码值得一试。
In your AppServiceProvider.php
you could add this: 在您的AppServiceProvider.php
您可以添加以下内容:
\URL::forceSchema('http');
Hope it helps. 希望能帮助到你。
通过在中间件中添加以下行来解决。
$request->server->set('HTTPS', 'off');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.