Laravel Homestead on Windows 10

Laravel Homestead on Windows 10

As the official documentation says, you need to enable hardware virtualization (VT-x). Now, you need to download the latest version of VirtualBox and vagrant. Now, we need to install git bash (if git bash is already installed in your PC, then skip this step).

It can sometimes feel like the documentation skips a few steps here and there. Other times, the documentation can feel overwhelming. Let’s demystify this process.

Goals to accomplish:

  • Introduction to Homestead
  • Setup Homestead on Windows 10 for all of your websites
  • Create a Laravel 8 application
  • SSH into Homestead and create a database
  • Migrate database tables
  • Verify that everything is working: able to type in domain.test in our browsers.

Introduction to Homestead

The first step, of course is to go to the Laravel documentation. We’ll follow it throughout this article so that if something changes in the documentation in the future, you can spot it and adapt to it. Also, if you do notice a change, let me know and I’ll update the content accordingly.

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

Ok cool. What is Vagrant?

Vagrant is just a tool that helps developers create predictable development environments for your application. If you’re familiar with Docker, it’s similar to that. While Docker uses containers, Vagrant uses Virtual Machines. The VM emulates an entire Operating System while containers rely on the host OS.

In a nutshell, Vagrant is a tool that helps to create and maintain Virtual Machines. You, as a software developer, will be required to maintain a Vagrant file. Well, in Homestead you’re not since Homestead manages the Vagrant file for you. Once the necessary properties are set in the vagrant file, you will be able to use the command _vagrant up _to start the virtual machine with the vagrant properties.

Alright, now that we understand what Vagrant is all about, let’s move on to Homestead. The documentation should make a little more sense now when it says that Homestead is just a “pre-packaged Vagrant box.” The pre-packaged Vagrant box comes with:

  • Nginx web-server
  • PHP
  • MySQL
  • Composer
  • Node/npm

That means that you will not need software like XAMPP or WAMP to have a web-server with PHP/MySQL; you can do it all from your virtual machine. You can even create new Laravel projects inside of your Virtual Machine and have them synced to your local machine. Pretty cool stuff which we’ll explore later.

software-development web-development php laravel programming

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Offshore Software Development - Best Practices

To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.

PHP Web Application Development Company

As a top **PHP Web Application Development Company in USA**[]( ""), we at Data EximIT have...

PHP Website Development

Skenix Infotech is a leading PHP Web Development Company that helps companies get results with industry best practices. Get affordable PHP Development Services.

Laravel Development Company

Skenix Infotech is a top Laravel Website Development Company with Expert Laravel Developers that provides robust Laravel Development Services at fair costs.

Hire Dedicated PHP Developer

Looking to hire affordable yet experienced PHP developers? **[Hire Dedicated PHP Developer]( "Hire Dedicated PHP Developer")**, who can convert your idea to reality, within the stipulated...