Uncaught ReflectionException: Class log does not exist Laravel 5.2

前端 未结 25 2145
长情又很酷
长情又很酷 2020-11-27 17:15

I am currently trying to clone an existing project of mine from github. After clone I run composer install during the process I receive the following error:

25条回答
  •  爱一瞬间的悲伤
    2020-11-27 17:28

    EDIT::

    Because I wasn't satisfied with the rather clumsy debugging and reworking paths, etc to get the VM running smoothly, I reflected on the process and reinstalled the vagrant box laravel/homestead (virtualbox 1.0.1)

    For me the issue potentially stemmed from a missing comma in config/app.php. The missing comma likely halted the compilation process and spit out the Uncaught ReflectionException: Class log does not exist error.


    This is not a direct answer, but serves more as a guide post to those who venture into this abyss of silent errors

    System: macOS Sierra

    Vagrant: 1.9.1 (Latest Version at time of writing)

    VM: laravel/homestead (virtualbox 0.4.0)

    Laravel Version: 5.1.*

    PHP: 7.0.*


    After repeated attempts to resolve the issue which include:

    1. rewriting, removing .env for potential parse issues
    2. php7.1 and the mcrypt / mbstring issues
    3. installing composer suggested packages
    4. updating homestead.rb
    5. PATH related issues

    Critically, (for me) it seemed it was the virtualbox version in the initial set up:

    vagrant box add laravel/homestead

    Instead try supplying the version number like so:

    vagrant box add laravel/homestead --box-version 0.4.0


    misc:

    I have attempted and failed with the following laravel/homestead virtualbox versions:

    • 1.0.1 (default)

    and laravel/homestead-7:

    • 0.2.1

提交回复
热议问题