Laravel development on Windows has never been easier

Photo by Dave Herring on Unsplash

In general, Docker and containers are something every developer has to get familiar with sooner or later. Let’s take a look at installing Docker Desktop on Windows 10, how it integrates with Windows Subsystem for Linux (WSL) 2, and how to use Laravel’s new command-line tool Laravel Sail to get up and running with Laravel in no time.


  1. Windows 10, version 1903 or higher
  2. Windows Subsystem for Linux (WSL) 2

1. Install Docker Desktop

First, make sure you have the prerequisites installed before continuing with the installation. You can find instructions on how to enable WSL 2 in this article:

Download and follow the…

How to open any file or directory using its associated Windows application

Photo by Roman Kraft on Unsplash

If you have ever used the terminal on macOS, you probably know that you can use the open command to open any file or directory with its default application. To my knowledge, there is no straightforward way to do this on Windows using WSL2, and this has bugged me a little lately. Sometimes you just want to open a PDF or a ZIP or any other filetype or path using its associated Windows application.


After some tinkering around, here’s the simple solution I came up with:

Add this function to your .bashrc or .zshrc or equivalent, depending on what…

Customizing the stub files used when running Artisan’s make commands

Think about how often you repeat yourself when generating new models, migrations, factories, and so on using Artisan’s make commands. As of Laravel 7, you have the option of publishing these stubs to your project. Let me show you how.

Paul A. Byström

I’m a tech-enthusiast located in Sweden.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store