06.10.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Laravel Homestead 69<br />

Mac / Linux:<br />

1 php vendor/bin/homestead make<br />

Windows:<br />

1 vendor\\bin\\homestead make<br />

Next, run the vagrant up command in your terminal and access your project at http://homestead.app<br />

in your browser. Remember, you will still need to add an /etc/hosts file entry for homestead.app<br />

or the domain of your choice.<br />

Installing MariaDB<br />

If you prefer to use MariaDB instead of MySQL, you may add the mariadb option to your<br />

Homestead.yaml file. This option will remove MySQL and install MariaDB. MariaDB serves as<br />

a drop-in replacement for MySQL so you should still use the mysql database driver in your<br />

application’s database configuration:<br />

1 box: <strong>laravel</strong>/homestead<br />

2 ip: "192.168.20.20"<br />

3 memory: 2048<br />

4 cpus: 4<br />

5 provider: virtualbox<br />

6 mariadb: true<br />

Daily Usage<br />

Accessing Homestead Globally<br />

Sometimes you may want to vagrant up your Homestead machine from anywhere on your<br />

filesystem. You can do this by adding a simple Bash function to your Bash profile. This function<br />

will allow you to run any Vagrant command from anywhere on your system and will automatically<br />

point that command to your Homestead installation:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!