I had this errror in first instance:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.27. in on line线上
later I solved it by adding
"platform-check": false
in composer.json config object then i executed: php artisan config:cache php composer.phar dump-autoload
and still get this error, which I can't solve:
Fatal error: Uncaught TypeError: Return value of Illuminate\Container\Container::offsetGet() must be an instance of Illuminate\Container\mixed, instance of Illuminate\Events\Dispatcher returned in /opt/lampp/htdocs/proyectoCartas/vendor/laravel/framework/src/Illuminate/Container/Container.php:1417
Thanks in advance
Since you didn't say which version of Laravel you're using, I assume it's the latest (9). If so, you will have to update the PHP version, it has the minimum requirement of PHP version 8
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.