composer create-project --prefer-dist laravel/laravel:^7.0 blog
using this command and I got error this
[InvalidArgumentException] Could not find package laravel/laravel
with version 7.0 in a version installable using your PHP version, PHP
exte nsions and Composer version.
2
Answers
Your PHP version is not compatible with Laravel version 7.0
Laravel 7 Docs
Laravel 7 requires PHP >= 7.2.5. Check your php version using
php -v
on terminal.You can uninstall
composer
then again install it.Your PHP Version is not compatible with your Laravel version, If you are using
XAMPP
or other web servers, try to use the older version that is compatible with yourLaravel-7
project file, and after that reinstall yourLaravel-7
project.