Over the weekend, Homestead received a new update that allows you to run it on a per project basis. Previously Homestead was designed so that you install it once on your system and share all your sites within the virtual machine. Joe Ferguson created the pull request to help get this feature implemented and he has a full write up on his blog.
To install Homestead directly into your project all that is required is pulling it in using Composer:
composer require laravel/homestead
Once Homestead has been installed, use the make command to generate the Vagrantfile and Homestead.yaml file in your project root. The make command will automatically configure the sites and folders directives in the Homestead.yaml file:
php vendor/bin/homestead make
You can also set hostname and name values for the virtual machine. It is important to note that you can’t have more than one vagrant machine with the same name. By default the make command will use your project’s folder name as the box name.
php vendor/bin/homestead make --name=VagrantName --hostname=myhost
For more information consult the official documentation on this new feature.
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Senior Laravel Engineer
Remote okay (must already live in USA)
- Senior Software Engineer (Remote - Contract)
- PHP Developer
Pittsburgh / Remote
Sequoia Waste Solutions
- Software Developer
- Application Developer Level II (CakePHP / MySql / Vue.js)
- FULL STACK LARAVEL DEVELOPER
LONDON - WEST END
- Mid/Senior Laravel Developer - U.S. Developers Only
Profit Miner Technologies
Josh – Laravel Admin and Front End Template (Sponsor)
Josh admin template + front end is a bootstrap based admin + frontend built for Laravel developers. It includes 100+…
Packagist Search from DuckDuckGo
The search engine DuckDuckGo has a community project named DuckDuckHack which allows developers to improve the search…