Setup Windows WSL for Laravel Development

preview_player
Показать описание
In this video, I will guide you through the following steps:

How to enable WSL on Windows and install a Linux distribution of your choice (I will use Ubuntu 20.04 in this example).
How to update and upgrade your Linux system and install the required dependencies for Laravel, such as PHP, Composer, MySQL, and Apache.
How to create a new Laravel project using Composer and configure it to work with WSL.
How to access your Laravel project from your Windows browser and test its functionality.
By the end of this video, you will have a fully functional Laravel project running on WSL that you can use for your own development purposes. You will also learn some tips and tricks on how to optimize your workflow with WSL and Laravel.

If you’re ready to get started, let’s begin!

Don’t forget to like, share, and subscribe to my channel for more Laravel tutorials. Also, feel free to leave a comment below if you have any questions or feedback. Thank you for watching! 😊
CloudWays Promo Code: CWT20
Promo Discount: 20% off for three months

Follow me:

Playlists:

#laravel #windows #development #wsl
Рекомендации по теме
Комментарии
Автор

Setup Windows WSL for Laravel Development

tonyxhepaofficial
Автор

7:09 sudo apt install php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-pgsql php8.2-fpm php8.2-gd php8.2-imap php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-soap php8.2-xml php8.2-zip

ismailaamassi
Автор

Thanks for the video. For me this is the correct way to develop in a Windows environment.

CharlesDv
Автор

You forgot to add the following line:
export
to your .zshrc file.

rosolovsky
Автор

I am curious why not just install docker and run Laravel sail? instead install all manually?

midteknologi
Автор

You already done a tutorial, How to setup laravel sail with WSL, can you show how to the setup to laravel sail from here?

lesssass
Автор

What's the search modal on 4:53 and how to get that ??

mohamadouabdoulbagui
Автор

Thanks so much. Can you please make a video on deploying Laravel websockets

dreamcode
Автор

Great tutorial! Works like a charm. However, I have one issue I was wondering if anyone could help with. When I run “php artisan storage:link” it doesn’t work at all for local public images. Anyone have a fix for it?

Thanks 😊

jake
Автор

Can you please create a video for Laravel Valet (Linux) in WSL2 ?

personal
Автор

Is it possible to integrate WSL terminal with Laravel Herd?

genesesabarcar
Автор

2:14 sudo apt install build-essential curl file git git-core

Ciphrassauroputu
Автор

Hey Tony, , a little question I got about setting up the Laravel Prompts on Windows.
From your video (thank you for which) you literally setup a new server under Windows WSL where you've installed all Laravel project requirements inside.

I was wondering why don't you instead install the dependencies under Windows and make the WSL find composer, NPM, Laravel installer etc. via env path instead? This way we can have any local Windows Server like XAMP, AMPPS, Laragon etc. while still having the benefit of Prompts which come native for Linux and MacOS but Microsoft forgot to add them out of WSL.

Also, my current server allows me to emulate any domain locally using windows hosts file so it makes my work locally and host wise matching in terms of configuration and allows an easy import later on when I need to deploy to my PROD host. With WSL you have to run multiple project folders if you have to work on some in parallels and go to each folder to use php artisan serve and then work on it. I agree it is perfect if we use a single project, however while running multiple projects like yourself and other freelancers would/could need to do, then this might be harsh, no?

What is your Professional feeling about using WSL over native apps/servers as well as would you still continue using WSL + LAMP when the new Server comes for Windows as well (Laravel Herd) this month?

Anyway, thanks for the video as it is my first time I made the prompts work as many people show in their demo videos and I was crushing my head how come it does not work on Windows until I've read the manual (rtfm, right? ;) )

milenkostadinov
Автор

Are you senior ? and backend or fullstack ?

bunyaminbilenkaratas
Автор

I get this error with "laravel new": laravel: command not found

javilerma
Автор

7:00
sudo apt install php8.3 php8.3-cli php8.3-common php8.3-curl php8.3-pgsql php8.3-fpm php8.3-gd php8.3-imap php8.3-intl php8.3-mbstring php8.3-mysql php8.3-opcache php8.3-soap php8.3-xml php8.3-zip

shafeeqahmed
Автор

I followed the instructions but, it says command not found: laravel

That was the only command I had problems with, everything else was fine like in the video. Last message in the ubuntu command line was:

Using version ^5.8 for laravel/installer

fredinfunez
Автор

how to install Tableplus in ubuntu 22.04?

lesssass
Автор

Btw how to run the application without artisan serve ?

einnlleinhatt_
Автор

im getting this SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (Connection: mysql, SQL: select * from `sessions` where `id` = limit 1)

DeepFul_Kay