[9.x] Add sole() to Enumerable contract. (#37066)
[9.x] Add sole() to Enumerable contract. (#37066)

* Added sole() to Enumerable contract.

* Update Enumerable.php

Co-authored-by: Taylor Otwell <5d74ae093a16a00e5af127763f2dc7e13988f162@laravel.com>
lucasmichot/framework,crynobone/framework,morrislaptop/framework,JamesForks/framework,samlev/framework,hafezdivandari/framework,mul14/laravel-framework,arturock/framework,JamesForks/framework,samlev/framework,laravel/framework,driesvints/framework,leo108/laravel_framework,laravel/framework,leo108/laravel_framework,arturock/framework,dwightwatson/framework,tomschlick/framework,tomschlick/framework,notebowl/laravel-framework,dwightwatson/framework,mul14/laravel-framework,driesvints/framework,morrislaptop/framework,mul14/laravel-framework,crynobone/framework,tomschlick/framework,arturock/framework,lucasmichot/framework,hafezdivandari/framework,notebowl/laravel-framework,mul14/laravel-framework