php - Laravel 8.0 Installation Failed
I try to install laravel 8.0 on my local server PHP 8.0,Composer 2.6, but give this error pls help me
Message Show
[InvalidArgumentException] Could not find package laravel/laravel with version 8.0 in a version installable using your PHP version, PHP extens ions and Composer version.
Answer
Solution:
Use --ignore-platform-reqs
when you are installing a lower version of laravel.
full code: composer create-project laravel/laravel:^8.0 example --ignore-platform-reqs
then change the php version on your composer.json from 7.3 to 8.0
Hope this solve your installation problem.
Another fix would be to install the last specific version of laravel 8:
composer create-project laravel/laravel:8.6.11 example-boilerplate --prefer-dist