Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

midascodebreaker's avatar

Awesome Laravel WSL Dev Machine

Note: This is ONLY for Windows 10 Users!

if Your Windows Users and Using Below OS Forget it...

This Config Arent For You...

If You Want to harness the latest Technology Windows Has to Offer... but Dont Know How to Start ...

Well this is For You!

At the Moment Im Using this For My Dev Machine...

And Im Loving It!

Well If You Want a Great Looking Terminal Then this is For You!

My Dev Set Up is Compose of

WSL - bash, zsh , ohmyzsh , php , node, npm, gulp, webpack, vim, ack, composer, xdebug, vue-cli Mintty WSL Docker For Windows ConEmu

If You Want a Set Up Like this...

Then

Check This Out! :

https://github.com/g0ld3lux/laravel-wsl-dev-machine

You May Leave Comment here or At that repo...

If You Cant Understand Something or Something is Blurry ....

Ill Answer it... Hopefully We Can make it More Standard...

If There are So Many People That Are Using it,

Ill make a Video How to Set it Up...

But For Now, You may Follow the read me file...

Thanks

0 likes
4 replies
bmartus's avatar

You ever make a video for this to demo the setup?

adiachenko's avatar

Checked out this setup just to make sure if it uses Insider Build. And yes, it does.

Thing is, WSL is pretty useless on the latest public build. Wait till April update, this will be eventually made available to everyone.

But still, Bash on Windows isn't really such an amazing thing to use. There will be plenty of limitations for the time being like symlinks created inside WSL remaining in the WSL, inability to utilize installed software (e.g. Git or PHP) from inside a Windows app (e.g. the editor of your choice) etc.

At the end of the day, I think it's better to stick to Vagrant or Docker under Hyper-V because they are better isolated and have less edge cases.

midascodebreaker's avatar

For me WSL is not useless in the sense that in my workflow

i use a lot of WSL(BASH) + Docker + VsCode

You will love the interoperability, that allows you to launch windows apps in bash or vice versa...

All my config has it...

I Also use it for production...

I have separate gist for that...

but if you want to see a video tutorial...

Ill planned to make one in my free time...

getvma's avatar

I am on build 16232 and it is absolutely fantastic....

No more npm issues.

All of the server tech is native linux (Ubuntu) so I actually set up a git, npm, node, php, nginx and in my case both mysql and postgresql server all within the WSL. Right now I set up the virtual host manually on nginx.

To spin up your dev server, you just start the Bash for Windows Desktop which opens instantly. But you do have to run a starter script once there, Its not like a VM where you spin it up and it's running all the apps. (by starter script I mean a shell script that initializes the server programs i need to run ie. service start program etc..)

As far as the hosts file, unless you run acrylic you do have to edit it but you do that once.

But this also means that it has all of the potential for a true Laravel Homestead for WSL concept where your init script uses the homestead.yaml to add vhosts and dbs. Not sure that Ruby even needs to be involved since you are already in the Linux environment once you open up the bash shell.

I haven't tried a Redis on it, or even supervisor & beanstalkd but from the docs it says it is supported.

The objective is to spin up development with the least amount of effort and you cant get any better than this. In under 15 seconds you can be up and running a php, nginx and postgresql linux native server enviro. And it is Snappy.. Yes indeed...

Please or to participate in this conversation.