Laravel Playground

Setup Laravel Homestead

1
2
3
4
5
6
# download box
vagrant box add laravel/homestead

# if error try below
vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead

Install Homestead

mkdir ~/Homestead git clone https://github.com/laravel/homestead.git ~/Homestead

cd ~/Homestead git checkout release

// Mac / Linux… bash init.sh

// Windows… init.bat

Environment Variables

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$ cat Homestead.yaml 
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/code
      to: /home/vagrant/code

sites:
    - map: homestead.test
      to: /home/vagrant/code/public

databases:
    - homestead

features:
    - mariadb: false
    - ohmyzsh: false
    - webdriver: false

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

comments powered by Disqus