laravel/laravel — pull request #497 by atourino (2012-04-04 18:22:30+00:00)
Title: Makes Request::secure() take into account ssl configuration flag.

Hi. I ran into an issue with my server in which I had an https site configured but which was independent of the site I was using Laravel with. Laravel kept trying to redirect to that other https site and failed. I thought that an easy fix would be to switch the SSL configuration option to false but that didn't seem to work. I looked in Request::secure() and saw that the code looked at the server HTTPS configuration but did not recognize that it might be for another site not related to the Laravel site I was configuring. Hence, I added a check for the the Laravel SSL configuration flag within Request::secure().