Reputation: 13
I am geeting error when trying to install laravel 7 using php version 8. Is there any way i can solve this issue.
Upvotes: 0
Views: 5821
Reputation: 3847
This message is telling you that no version of Laravel is available for the given version constraint (^7.0
) and your PHP version.
Said otherwise all Laravel version from the 7.0
to the latest 7.x
(^7.0
) aren't compatible with your PHP version (which is probably too old).
You could also have missing extensions that are required by Laravel.
Three options here:
--ignore-platform-reqs
flag: composer create-project --ignore-platform-reqs laravel/laravel:^7.0 blog
. Composer will ignore the "platform requirements" and will install Laravel, however it might not work well.composer create-project laravel/laravel blog
.You can check the PHP version by doing php --version
, Laravel 7 requires at least PHP 7.2
.
Upvotes: 5