Fix for issue 2703

https://github.com/laravel/framework/issues/2703