There are lots of questions asking how to make a Laravel request HTTPS, but how do you make it NON HTTPS. I'd like to make sure all the pages that are not the order page, are not SSL. Basically the opposite of Redirect::secure.
//in a filter
if( Request::path() != ORDER_PAGE && Request::secure()){
//do the opposite of this:
return Redirect::secure(Request::path());
}
try this //in a filter
May be this will help you.
I solved it with a filter that I map to all routes I need to make non SSL
Example for a route with non SSL only
If you open
https://example.app/your_no_ssl_url
you will be redirected tohttp://example.app/your_no_ssl_url