Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morshadunnur/130e68e5206f6b7394a2e46a5100113f to your computer and use it in GitHub Desktop.
Save morshadunnur/130e68e5206f6b7394a2e46a5100113f to your computer and use it in GitHub Desktop.
All necessary elements:
PHP
Git
Composer
Virtual Box
Vagrant
After setting up PHP & Git just setting up composer , Virtual box and vagrant. Downloads Link
Composer https://getcomposer.org/
Virtualbox https://www.virtualbox.org/
Vagrant https://www.vagrantup.com/
Make a Directory in Desktop
cd Desktop
mkdir projects
cd projects
now Install Laravel by composer
composer create-project laravel/laravel test
After that Install Homestead
cd ~/projects/test
composer require laravel/homestead --dev
Next, we'll run the ‘make’ command, to configure our project for homestead. Here's the full command.
php vendor/bin/homestead make
lets's start vagrant and it's take little bit more time to download about 650MB to 900MB
vagrant up
if getting ssl error 104 , Just add private key and verify ssl
ssh-keygen -t rsa -b 4096 -C "me@morshadunnur.me"
eval "$(ssh-agent -s)"
ssh-add -k ~/.ssh/id_rsa (k should be small leter)
Just Edit your hosts file /etc/hosts
sudo nano /etc/hosts
Add the line in hosts file
192.168.10.10 homestead.app
That's it! Go to browser and visit homestead.app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment