Fixed laravel support. now works correctly for both Slim and Laravel