I am looking for help in solving the entire process of setting up a Laravel project. This is currently my list of passes:
- Install Virtual Box and Vagrant.
- Run
vagrant box add laravel/homestead - Run
git clone https://github.com/laravel/homestead.git Homestead in your favorite folder using your favorite Bash (in my case I use Git Bash because I'm on Windows 10) - Set your SSH keys using
ssh-keygen -t rsa -C "email@domain.blah" - Install the SSH connector file [¹].
- Customize your Homestead.yaml as you wish.
- Run
init.sh / init.bat . - SSH to the tramp.
- run
composer global require "laravel/installer" - run
laravel new project - Return to the main computer in the project folder and run
git init , git add . , git commit -m "clean project" - Click on the
git remote add origin https://bitbucket.org/you/yourproject project git remote add origin https://bitbucket.org/you/yourproject and git push -u origin --all
Now I have a new Laravel project plugging into Git for version control. My problem is that Laravel ignores /vendor by default. Given this fact, I want to clone my project on another computer, because I have 2 computers to work with and / or a colleague wants to clone the same project so that we can work on it together.
What will be the correct walkthrough to clone a project and work with Laravel on another machine? Should I add /vendor to the repository and click? Should I add a homestead field to the vault? If so, how?
Thanks in advance.
[¹] Host homestead HostName 127.0.0.1 User vagrant Port 2222
git laravel-5 homestead
Marco aurélio deleu
source share