I am having the following error in my laravel log file:
[2023-08-23 18:43:58] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (Error(code: 0): Class \"Illuminate\\Support\\Collection\" not found at /Users/joaopedrogomes/sites/project/vendor/laravel/framework/src/Illuminate/Support/helpers.php:109)
[stacktrace]
[2023-08-23 18:43:58] laravel.ERROR: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/joaopedrogomes/sites/project/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1277
Stack trace:
I tried updating the dependencies and deleting the vendor folder