来自官方文档,“Laravel Homestead 是一个官方的、预打包的 Vagrant box,它为你提供了一个美妙的开发环境,而不需要你在本地机器上安装 PHP、HHVM、Web 服务器和任何其他服务器软件。 "
我安装了vagrant,并下载了盒子,太棒了。但是后来, 在 the docs ,我读到我必须通过克隆存储库来安装“Homestead”https://github.com/laravel/homestead/
我发现这真的很令人困惑,因为我认为 Homestead 就是我已经下载的虚拟盒子。 laravel homestead box 和 homestead repo 有什么区别?没有专门针对 github 存储库的文档。
最佳答案
来自 github 的 Homestead Repo 存储您在运行 homestead 时使用的全局首选项。
Homestead Box 是一个实际运行操作系统的虚拟机镜像。
更新
Laravel 推荐的本地开发环境是 Laravel Valet .
Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels.
还有一个Linux版本available here .
更新 (2020 年 8 月 6 日)
Both Valet and Homestead are great choices for configuring your Laravel development environment. Which one you choose will depend on your personal taste and your team's needs.
关于php - laravel homestead box 和 homestead repo 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37502233/