Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel project not showing in localhost: "Composer detected issues in your platform...." [duplicate]

When I want to see my Laravel project in localhost, I get the following error message.

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2".

My terminal PHP version is 8.0.2, and my MAMP PHP version is 8.0 (no higher version is available, it has always worked like this). I don't know what else to do. I have already put my composer.json and .lock files at 8.0.2 PHP.

like image 212
Ser Avatar asked Jan 26 '26 22:01

Ser


1 Answers

You can use the following to install/update commands if you have an invalid PHP version or are missing a PHP extension.

composer update --ignore-platform-reqs