有很多詢問如何使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