-2
I can create Laravel projects in versions 8, 7 and 6 with Composer. However, when trying to create a project in version 5.7 or even 5.8, the console has an error.
And the error presented is:
[InvalidArgumentException] Could not find package laravel/laravel with version 5.7.* in a version installable using your PHP version, PHP extensions and Composer version.
I’m using PHP 8.0.0 and Laravel Installer 4.2.4
I removed the code to create the project, in Laravel’s own documentation.
composer create-project --prefer-dist laravel/laravel blog "5.7.*"
Laravel 5.7 may not be compatible with PHP 8..., if you still want to insist. Use flag
ignore-platform-req
to ignore validation of commiserate. Ex:composer create-project --ignore-platform-req php laravel/laravel example-app 5.7.*
– Valdeir Psr