Using Laravels Homestead from your project
Joe • May 18, 2015
devops laravel php vagrantI love Laravel's Homestead environment. I've been using it since it was first released and have found it incredibly handy. I often use it for non-Laravel uses as well. It's a great PHP 5.6+ / nginx / MySQL vagrant box.
With Homestead version 2, Homestead was changed to run from your home folder and it pushed you more towards using one Homestead machine for all of your Laravel projects. This is fine and works really well for many people.
I prefer to have the project's vagrant configuration in the actual project itself So that each of my applications are isolated in their own environment. SimpleLance and NerdsAreDrinking are examples. This allows me to ensure everyone that wants to contribute to the project is running the same exact environment without having to worry about other projects that may conflict.
Instead of always copying these set of files from one project to the next I have set them up in a repository of their own.
To use this in your project, just clone the repository and copy the files to the root of your Laravel application. Then configure "Homestead.yaml" as you would via the official Homestead documentation.
As Seen On
Recent Posts
- PHP to Rust via Copilot
- Compiling Python 3.12 from Source Tarball on Linux
- HTML Form Processing with PHP - php[architect] Magazine August 2014
- The Workshop: Local Dev with Lando - php[architect] Magazine November 2022
- Getting back into the swing of things
- All Posts
Categories
- ansible
- apache
- applesilicon
- aws
- blackwidow
- cakephp
- community
- composer
- conferences
- copilot
- data-storage
- day-job
- devops
- docker
- fpv
- general
- github
- givecamp
- homestead
- jigsaw
- joindin
- keyboard
- laravel
- learning
- linux
- maker
- mamp
- mentoring
- music
- nonprofit
- opensource
- packages
- php
- phparch
- projects
- provisioning
- python
- razer
- rust
- s3
- security
- slimphp
- speaking
- static-sites
- storage
- testing
- tiny-whoop
- today-i-learned
- training
- ubuntu
- vagrant
- version-control
- windows
- writing
- wsl
- wsl2
- zend-zray