Skip to content

Instantly share code, notes, and snippets.

@marcamos
Last active December 15, 2017 20:20
Show Gist options
  • Save marcamos/415df7891d98eef0e5bc18120e3d80bb to your computer and use it in GitHub Desktop.
Save marcamos/415df7891d98eef0e5bc18120e3d80bb to your computer and use it in GitHub Desktop.
Add a new Laravel Homestead URL
  1. sudo vim /etc/hosts
  2. type i to edit the file
  3. add 192.168.10.10 [repo-name].test on a new line
  4. press esc to exit edit mode
  5. type :wq, then enter, to write and quit vim
  6. vim ~/Homestead/Homestead.yaml
  7. type i to edit the file
  8. under sites:, add another pair of map: / to: entries
  9. press esc to exit edit mode
  10. type :wq, then enter, to write and quit vim
  11. cd ~/Homestead/
  12. vagrant reload --provision

Once the above is done, [repo-name].test should be available in your browser.

Don't forget to add [repo-name].test to your project's webpack.mix.js file, as its localUrl: value, around line 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment