fixes laravel/framework/#5483