Laravel Homestead 実施メモ
Laravel Homestead - Laravel - The PHP Framework For Web Artisans
First Steps
Installing The Homestead Vagrant Box
vagrant box add laravel/homestead
larabel の Box を追加
Installing Homestead
git clone https://github.com/laravel/homestead.git ~/Homestead cd ~/Homestead git checkout release
Git bash for Windows ならどちらでもOKそう
// Mac / Linux... bash init.sh // Windows... init.bat
Configuring Homestead
Configuring Shared Folders
projectのディレクトリを設定
Homestead.yaml
folders: # - map: ~/code # to: /home/vagrant/code - map: C:\Users\kuwahara\git\laravel_getting_started to: /home/vagrant/laravel_getting_started
Configuring Nginx Sites
sites: # - map: homestead.test # to: /home/vagrant/code/public - map: laravelgettingstarted.test to: /home/vagrant/laravel_getting_started/public
Hostname Resolution
windows 10 1903 だと mDNS は入っているようだ
mDNSを使ってローカルDNSサーバーを廃止する - Qiita
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 homestead 127.0.0.1 laravelgettingstarted.test