I can’t create an Laravel 5.7 project

Asked

Viewed 92 times

-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.*

1 answer

0


Hello, Gabriel! Only later versions of Laravel 6 have support for Php 8, such as documentation says. If you really need to create an Laravel project in version 5.7, install Php 7.4 on your machine.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.