Тёмный

Setup Windows WSL for Laravel Development 

Tony Xhepa
Подписаться 32 тыс.
Просмотров 13 тыс.
50% 1

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
Promo Link: bit.ly/cloudways-cwt
Hostinger: hostinger.com?REFERRALCODE=1TONY30
DigitalOqean $200 free: m.do.co/c/35b78d1e88a4
Follow me:
Twitter: / codewith_tony
Facebook Page: / codewithtony
Instagram: / codewithtonyofficial
GitHub: github.com/codewithtonyofficial
Github Repo: github.com/codewithtonyoffici...
Playlists:
Laravel Splade Tutorial: bit.ly/3j0IfTW
Laravel Filament Permission: bit.ly/3Gojd8Z
Vue Authentication: bit.ly/3g7YZHd
Laravel Inertia Portfolio - bit.ly/3DlxTp5
Laravel Reddit clone - bit.ly/3UOYS2O
React tutorial for beginners - bit.ly/3arkqjX
Laravel Filament Blog - bit.ly/3nWYv74
Laravel 9 Full Tutorial - bit.ly/3nTiyTR
Laravel 9 Media Library - bit.ly/3LpJmVr
Laravel Essentials Full Tutorial - bit.ly/3vplyuC
Laravel Mail Tutorial - bit.ly/37mJUNh
Laravel Restaurant Reservation - bit.ly/3Jc5IcG
Spatie Laravel Permission - bit.ly/3pOsOhN
Laravel Testing For Beginners - bit.ly/3t1gNq4
Laravel Roles and Permissions - bit.ly/3gOhM7d
LARAVEL INERTIA MOVIE APP - bit.ly/3FVMp4Q
Laravel Livewire Movie App - bit.ly/3s8D6v1
Laravel Classified Website - bit.ly/3nsFRnb
Livewire Employees - bit.ly/2ZtIpZY
Laravel Employees Management - bit.ly/3Gglt14
Laravel admin panel - bit.ly/3CcX75M
#laravel #windows #development #wsl

Опубликовано:

 

9 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 56   
@tonyxhepaofficial
@tonyxhepaofficial 11 месяцев назад
Setup Windows WSL for Laravel Development
@ismailaamassi
@ismailaamassi 11 месяцев назад
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
@aquicnpj
@aquicnpj 11 месяцев назад
god
@juanlpm56
@juanlpm56 5 месяцев назад
thanks
@Cucharadadeinternet
@Cucharadadeinternet 4 месяца назад
THANK YOU
@CharlesDv
@CharlesDv 18 дней назад
Thanks for the video. For me this is the correct way to develop in a Windows environment.
@waheed1987
@waheed1987 11 месяцев назад
Thank you very much 🙂
@tonyxhepaofficial
@tonyxhepaofficial 11 месяцев назад
You're welcome 😊
@dreamcode869
@dreamcode869 11 месяцев назад
Thanks so much. Can you please make a video on deploying Laravel websockets
@jake221
@jake221 10 месяцев назад
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 😊
@bogde
@bogde 8 месяцев назад
probably late but for other people that may have the same issue: check if the link was actually created and if it's indeed a symlink. sometimes you just have a regular file there, not a link, and it doesn't work and php artisan storage:link doesn't actually fixes it either, it just says it's already there.
@genesesabarcar7913
@genesesabarcar7913 Месяц назад
Is it possible to integrate WSL terminal with Laravel Herd?
@rosolovsky
@rosolovsky 11 месяцев назад
You forgot to add the following line: export PATH="$HOME/.config/composer/vendor/bin:$PATH" to your .zshrc file.
@cristiancguzman6178
@cristiancguzman6178 11 месяцев назад
Thank you so much
@nahuel2283
@nahuel2283 4 месяца назад
Thank you very much!!!!.
@lesssass4478
@lesssass4478 11 месяцев назад
You already done a tutorial, How to setup laravel sail with WSL, can you show how to the setup to laravel sail from here?
@midteknologi
@midteknologi 11 месяцев назад
I am curious why not just install docker and run Laravel sail? instead install all manually?
@midteknologi
@midteknologi 11 месяцев назад
@@codernerd7076 oh okey Thanks
@mahdiaghamohammadi7872
@mahdiaghamohammadi7872 8 месяцев назад
thank you
@tonyxhepaofficial
@tonyxhepaofficial 8 месяцев назад
You're welcome
@personal1872
@personal1872 13 дней назад
Can you please create a video for Laravel Valet (Linux) in WSL2 ?
@milenkostadinov8702
@milenkostadinov8702 4 месяца назад
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? ;) )
@tonyxhepaofficial
@tonyxhepaofficial 4 месяца назад
thats is a good idea. I work with Mac OS just wanted to show also for windows users how to have prompts.
@lesssass4478
@lesssass4478 11 месяцев назад
how to install Tableplus in ubuntu 22.04?
@bunyaminbilenkaratas
@bunyaminbilenkaratas 11 месяцев назад
Are you senior ? and backend or fullstack ?
@einnlleinhatt_
@einnlleinhatt_ 7 месяцев назад
Btw how to run the application without artisan serve ?
@karlson2804
@karlson2804 3 месяца назад
install docker and after make nginx or apache server docker-container
@javilerma89
@javilerma89 11 месяцев назад
I get this error with "laravel new": laravel: command not found
@tonyxhepaofficial
@tonyxhepaofficial 10 месяцев назад
add this to zshrc: export PATH="$HOME/.config/composer/vendor/bin:$PATH"
@codernerd7076
@codernerd7076 9 месяцев назад
@@tonyxhepaofficial how do I do this?! Where is my zshrc file?! I got the same issue
@tonypetroski216
@tonypetroski216 8 месяцев назад
@@tonyxhepaofficial i've added this line to .zshrc as "export PATH="$HOME/.config/composer/vendor/bin:$PATH"" but same issue. Laravel not recognized
@tonypetroski216
@tonypetroski216 8 месяцев назад
Sorry my mistake. It does work, i just had to close & startup new Ubuntu
@Ciphrassauroputu
@Ciphrassauroputu 4 месяца назад
2:14 sudo apt install build-essential curl file git git-core
@shahedahmed2599
@shahedahmed2599 11 месяцев назад
😊
@fredinfunez4781
@fredinfunez4781 2 месяца назад
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
@tonyxhepaofficial
@tonyxhepaofficial 2 месяца назад
now you can use Herd on Windows
@fredinfunez4781
@fredinfunez4781 2 месяца назад
@@tonyxhepaofficial I know of Herd but I wanted to use Ubuntu 🥲 nvm I'll continue with Herd
@tammj_vn
@tammj_vn Месяц назад
@@fredinfunez4781 1) type: vi ~/.zshrc 2) paste this: export PATH="$HOME/.config/composer/vendor/bin:$PATH" 3) save and quit: :wq 4) restart ubuntu and type 'laravel new'. Now it will work!
@DeepFul_Kay
@DeepFul_Kay 8 дней назад
im getting this SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (Connection: mysql, SQL: select * from `sessions` where `id` = fiSj6w862G4k5HqjdUeE8aZ6yu2sLdtmnBh79mVx limit 1)
@lesssass4478
@lesssass4478 8 месяцев назад
Can anyone explain how to initialize a remote repository on the GitHub?
@iordanistsapanidis4021
@iordanistsapanidis4021 11 месяцев назад
κανενα advanced laravel???
@rosolovsky
@rosolovsky 11 месяцев назад
Apache ??? Why not Nginx?
@tonyxhepaofficial
@tonyxhepaofficial 11 месяцев назад
Nginx better
@anmasa
@anmasa 11 месяцев назад
Hola, comentar que he tenido problemas a la hora de crear una nueva aplicación no lo reconoce: ➜ ~ cd Code ➜ Code laravel new Not enough arguments (missing: "name"). Me pide que ponga un nombre. Un saludo, un tutorial muy bueno, gracias por tu tiempo, saludos
@tonyxhepaofficial
@tonyxhepaofficial 11 месяцев назад
What laravel installer you using??
@anmasa
@anmasa 11 месяцев назад
@@tonyxhepaofficial ➜ ~ laravel --version Laravel Installer 4.2.8
@anmasa
@anmasa 11 месяцев назад
Cuando creo un proyecto: $ php artisan --version Laravel Framework 10.18.0
@ellmatic
@ellmatic 10 месяцев назад
"Set up"* - "setup" is a noun.
@lesssass4478
@lesssass4478 11 месяцев назад
sudo add-apt-repository -y ppa:ordrej/php I am getting error in this stage.
@tonyxhepaofficial
@tonyxhepaofficial 11 месяцев назад
What error
@lesssass4478
@lesssass4478 11 месяцев назад
@@tonyxhepaofficial I fixed this by applying the command without -y
@Ciphrassauroputu
@Ciphrassauroputu 4 месяца назад
6:27 sudo add-apt-repository -y ppa:ondrej/php
@CodeWithAbirOfficial
@CodeWithAbirOfficial 11 месяцев назад
8:05 what is the shortcut for this menu?
@maulx
@maulx 11 месяцев назад
alt+space, but you can only use it if youre installing powertoys
@tonyxhepaofficial
@tonyxhepaofficial 11 месяцев назад
Alt+Space Powertoys app
Далее
Elden Ring DLC - ПОДОЖГЛО ПОПУ!
07:26
Просмотров 510 тыс.
Setup Windows with wsl for Laravel Sail + Oh My ZSH
14:03
Laravel + Livewire todo app (and so much more)
16:41
Просмотров 36 тыс.
Install Windows Subsystem for Linux (WSL)
8:41
Просмотров 8 тыс.
WSL 2: Getting started
20:34
Просмотров 698 тыс.
Installing Linux The "Right" Way
18:43
Просмотров 647 тыс.
Laravel Docker Nginx + PHP-FPM + op_cache
22:07
Просмотров 14 тыс.
PopOS is SPECIAL, and I'm moving to it, here's why!
20:15
Setup Laravel 9.x using Docker, WSL for Windows
13:40
Elden Ring DLC - ПОДОЖГЛО ПОПУ!
07:26
Просмотров 510 тыс.