有很多询问如何使Laravel请求HTTPS的问题,但你怎么让它非HTTPS。我想确保所有不是订单页面的页面都不是SSL。基本上与Redirect :: secure相反。Laravel重定向所有请求NON-HTTPS
//in a filter
if(Request::path() != ORDER_PAGE && Request::secure()){
//do the opposite of this:
return Redirect::secure(Request::path());
}
这可能会很晚,但它可能有助于未来的访问者。看看[这个答案](http://stackoverflow.com/a/26875905/1903366) – lukasgeiter 2014-11-11 22:42:52