Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

397
Visualizações
Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.11

I would like to use Php 8.0 in my homestead but i run into this error when i open the site "Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.11"

In my composer.json :

"require": {
        "php": "^8.0" 

Running php --version in homestead machine (Ubuntu 20.04.1 LTS) gives this :

PHP 8.0.0rc1 (cli) (built: Oct 10 2020 14:16:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.0rc1, Copyright (c), by Zend Technologies 

I've seen somewhere that there's a difference between web php version and CLI version, but i'm not sure if that's related.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Make sure your CLI and web version of PHP is same or not ??.

check your web version by phpinfo();, either both are same or not!!!

if not then in your Homestead.yaml, you can specify a PHP version of your site.

sites:
-
    map: mywebsite.test
    to: /home/vagrant/code/public
    php: "8.0"
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda