Laravel Homestead setup for MacOS ================================= ## Requirements 1. [Homebrew](https://brew.sh/) 2. [VirtualBox](https://www.virtualbox.org/) 3. Vagrant: `brew install vagrant` 4. Composer: `brew tap caskroom/cask && brew cask install vagrant` 5. Laraver installer: `composer global require laravel/installer` ## Installation 1. Scaffold Laravel ``` cd ~/Workspace laravel new laravel-homestead-playground cd laravel-homestead-playground ``` 2. Configure Homestead ``` composer require laravel/homestead --dev vendor/bin/homestead make sed -i '' 's/192\.168\.10\.10/10.0.0.10/' Homestead.yaml sed -i '' 's/homestead\.test/laravel-homestead-playground.app/' Homestead.yaml vagrant up ``` 3. Add to `/etc/hosts`: ``` 10.0.0.10 laravel-homestead-playground.app ``` 4. Visit [http://laravel-homestead-playground.app/](http://laravel-homestead-playground.app/) ## Next steps Migrate database: ``` DB_PORT=33060 php artisan migrate ```