Write laravel environment setup
- Laravel builds his environment in two ways
-
One is to sail + WSL
-
The other is Virtual + Vagrant + Homestead
-
- I tried both before settling on Vagrant, which seemed to work better
The whole process of setting up the environment
Minor issues encountered:
- I didn’t encounter too many errors, but it took me three days. Finally, in the afternoon of the third day, I was on the verge of giving up. When I executed the Vagrant Up command, the progress bar stopped moving as far as the Booting VM
Match the environment first step
- First, install VirtualBox,Vagrant, import the Homestead Box virtual machine Box, and install the Homestead Administration script
- Configure the homestead. yaml file
- Start the Homestead VM
After installation, daily use:
- CD ~/Homestead Go to the Homestead directory
- Then Vagrant Up started Vagrant
- Reopen a command line window and enter the command Vagrant SSH to connect