rjacobsen / laravel-vagrant
专门为 Laravel 设计的 Vagrant
此包的规范仓库似乎已消失,因此该包已被冻结。
v11.2.11
2020-08-20 00:25 UTC
Requires
- illuminate/auth: >=5.1
- illuminate/contracts: >=5.1
- illuminate/http: >=5.1
- illuminate/support: >=5.1
Requires (Dev)
- illuminate/console: >=5.1
- illuminate/database: >=5.1
- illuminate/routing: >=5.1
README
Laravel Vagrant 是一个用于安装可用于 Laravel 的 Vagrant 的包。
它提供的内容
- 安装
ubuntu/xenial64
redis
mailcatcher
mysql 5.7
nginx
postfix
git
xdebug
composer
zsh
php 7.4
- 停止所有来自 Vagrant 的 outgoing 邮件,并使用
mailcatcher
捕获它们
要求
- virtualbox 5.2.22
- vagrant 2.2.2
- laravel 5.1+
安装
- 运行
composer require rjacobsen/laravel-vagrant
- 运行
php artisan vendor:publish
并选择对应于VagrantLoadServiceProvider
的数字 - 将
.vagrant
添加到.gitignore
- 将
config.yaml
添加到.gitignore
- 修改
config.yaml
以符合您的定义参数 - 运行
vagrant up
使用方法
- 在您的
config.yaml
中访问您选择的vagrant_ip
处的数据库 - 将
/etc/hosts
中的主机设置为指向相同的vagrant_ip
- 在 http://
vagrant_ip
:1080 (例如:http://10.0.0.110:1080
) 访问mailcatcher