'How can i serve in a different port laravel 7
Normally, when I run php artisan serve command it opens at localhos:8000 or 127.0.0.1:8000. I want to run 2 projects at a time so I need to know the process of opening another project in different port like 80 or 8080 while running a project at port 8000.
Solution 1:[1]
If you want to run another project at the same time you can use a different port giving the port with the command. As your question, I will show port 8080
php artisan serve --port=8080
You can also select the specific host and the port both by below command
php artisan serve --host=localhost --port=8080
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tharindu Marapana |
