laravel core fix

details of fix are referenced here -->
https://github.com/laravel/laravel/issues/690