Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between the laravel homestead box and the homestead repo?

From the official docs, "Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local machine."

I installed vagrant, and downloaded the box, great. But then, later on, in the docs, I read I have to install "Homestead" by cloning the repo https://github.com/laravel/homestead/

I find that really confusing, because I thought Homestead was the virtual box I already downloaded. What is the difference between the laravel homestead box and the homestead repo? There are no docs specifically for the github repo.

like image 587
Lars Avatar asked May 28 '16 18:05

Lars


People also ask

What is Laravel homestead?

What is Laravel Homestead? Laravel Homestead is an official, pre-packaged Vagrant "box" that provides you a wonderful development environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local machine.

Which is better Laravel homestead or Docker?

According to the StackShare community, Docker has a broader approval, being mentioned in 3471 company stacks & 3324 developers stacks; compared to Laravel Homestead, which is listed in 20 company stacks and 24 developer stacks.

What is homestead?

Homestead runs on any Windows, Mac, or Linux system, and includes the Nginx web server, PHP 5.6, MySQL, Postgres, Redis, Memcached, and all of the other goodies you need to develop amazing Laravel applications. Docker and Laravel Homestead are primarily classified as "Virtual Machine Platforms & Containers" and "Virtual Machine" tools respectively.

How do I SSH into my Laravel homestead environment?

You can SSH into your virtual machine by executing the vagrant ssh terminal command from your Homestead directory. Once your Homestead environment is provisioned and running, you may want to add additional Nginx sites for your other Laravel projects. You can run as many Laravel projects as you wish on a single Homestead environment.


1 Answers

The Homestead Repo, from github, stores your global preferences which are used when running homestead.

The Homestead Box is a virtual machine image that actually runs the operating system.

Update

The recommended local development environment for Laravel is Laravel Valet.

Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels.

There is also a Linux version available here.

Update (Aug 06, 2020)

Both Valet and Homestead are great choices for configuring your Laravel development environment. Which one you choose will depend on your personal taste and your team's needs.

like image 154
Dov Benyomin Sohacheski Avatar answered Sep 28 '22 19:09

Dov Benyomin Sohacheski