Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

388
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda