In this video, I describe how you can Run multiple Laravel projects simultaneously using a virtual host | It will save your production time while maintaining various projects simultaneously. From my end, I thought this trick was essential for all Laravel developers; that’s why I made this video for you.
If you found this video helps you, please recommend it to others.
code for .env
================
APP_URL=http://projectname.loc/
code for C:\Windows\System32\drivers\etc\
================
127.0.0.1 projectname.loc
code for C:\xampp\apache\conf\extra\httpd-vhosts.conf
================
<VirtualHost *:80>
DocumentRoot "D:\xampp\htdocs\project_foler\public"
ServerName projectname.loc
<Directory "D:\xampp\htdocs\project_foler\public">
Require all granted
</Directory>
</VirtualHost>