The problem is the client told us we could go live with any OS we wanted, so we developed on CentOS as usual, and when we went to go live, they said "oh, new policy is RHEL only, sorry". Our application works perfectly on CentOS, but not on RHEL.
Main Problem:
- routes protected by a 'before' => 'auth' filter are being protected on CentOS, but not on RHEL. This means the user is never Authenticated, so Auth::user() is always empty, so all subsequent code fails.
Configuration Info:
- both servers are running Apache 2.2.15 and PHP 5.4.13
- both have the same set of Apache modules and PHP extensions.
- both have the same code from git.
I have a fix, but it makes NO sense: in vendor/laravel/framework/src/Illuminate/Routing/Router.php
at line 1398, change this:
public function filtersEnabled()
{
return $this->runFilters;
}
to this:
public function filtersEnabled()
{
return true;//$this->runFilters;
}
Do you have any idea what's going on here? I can't find a config option anywhere that would be setting runFilters = false.