Проблемы с artisan в проекте laravel

Я учусь писать сайт по видео с ютубa. Установила openserver, laravel, подключила bootstrap. На начальных этапах использование artisan обойти смогла (в видео он часто используется), но на моменте с созданием файлов модели и миграции он нужен. Пыталась найти решение. Из попыток: скачан новый composer, composer install, composer update. Перепробовала также другие решения, но не получилось решить проблему.

При создании файла миграции и модели (php artisan make: model Contact -m) появляется ошибка: PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists( should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be usedmporarily suppress the notice in C:\OSPanel\domains\tatktest\vendor\laravel\framework\src\Illuminate\Support\Collection.php:1349 Stack trace: ...

In Collection.php line 11:

During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should eit be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to tempora y suppress the notice in C:\OSPanel\domains\tatktest\vendor\laravel\framework\src\Illuminate\Support\Collection.php:1349

введите сюда описание изображения

Структура папки. Запуск artisan производила после перехода в папку проекта.

Версии: PHP 8.2.11, laravel 7.29.

Подскажите как мне решить данную проблему?

Решения пыталась найти на данных страницах: https://stackoverflow.com/questions/21882897/laravel-artisan-not-working https://stackoverflow.com/questions/21994590/unable-to-execute-laravel-artisan-commands


Ответы (0 шт):