Laravel 5.8: A facade root has not been set after homestead restart

后端 未结 4 1459
走了就别回头了
走了就别回头了 2021-01-06 11:30

so I\'m trying to get into Laravel and this is my first time using Vagrant, so here\'s my problem:

I\'ve worked through the Laravel Homestead introduction and set up

相关标签:
4条回答
  • 2021-01-06 11:47

    Homestead periodically issues "alpha" / "beta" boxes for testing, which may interfere with the vagrant box add command you run during homestead setup. If you are having issues you may run the vagrant up command and the correct box will be downloaded when Vagrant attempts to start the virtual machine.

    So skip the step vagrant box add laravel/homestead

    Try doing the following:

    vagrant destroy
    vagrant up
    

    Vagrant will download and choose the correct laravel/homestead version for you.

    Information source

    0 讨论(0)
  • 2021-01-06 11:52

    Upgrading VirtualBox to v6 from v5 fixed this issue for me. I'm on OSX 10.15 Catalina.

    I didn't have to adjust the version of my homestead box after upgrading VirtualBox.

    Upgrading was recommended as a fix from this github issue: https://github.com/laravel/homestead/issues/1178

    0 讨论(0)
  • 2021-01-06 11:58

    Ran into this issue because the default laravel/homestead box installed via vagrant is set to v8.0.0-alpha2 which seems to be very broken. You will need to reinstall the box and delete the current box.

    Reference: https://github.com/laravel/homestead/issues/1178

    cd ~/Homestead
    vagrant destroy
    vagrant box remove laravel/homestead --box-version=8.0.0-alpha2
    vagrant box add laravel/homestead --box-version=7.2.1
    vagrant up
    
    0 讨论(0)
  • 2021-01-06 12:07

    as the same of the answer top of me by @Cody Moorhouse

    but in my case did,t work till i did this :

    before run the box up i added version:7.2.1 to homstead.ymal

    ip: "192.168.10.10"
    memory: 2048
    cpus: 1
    provider: virtualbox
    version: 7.2.1
    authorize: ~/.ssh/id_rsa.pub
    

    and i edited the compser.json and added

    "extra_data":{  
            "box":{  
               "name":"laravel/homestead",
               "provider":"virtualbox",
               "version":"dev-release"
            }
         },
    

    to force vagrant to use the version 7.2.1

    then on homestead dirctory i lunched compsoer update

    after that vagrant up work perfect .

    0 讨论(0)
提交回复
热议问题