-2

I installed Laravel and run through php artisan serve. It runs one project for one instance. Like http://localhost/index.php

But I want to run multiple project on one instance of laravel like : http://localhost/project_1_name/index.php http://localhost/project_2_name/index.php

swati
  • 11
  • 2

3 Answers3

1

In default, Laravel use the port 8000, so just change the port when you run the server in every project. Exp:

For first project:

php artisan serve

In browser you access with:

localhost:8000/project1

For second project:

php artisan serve --port=8050

In browser you access with:

localhost:8050/project2
Haithem DISSEM
  • 74
  • 3
  • 12
0

yes you can run multiple projects but with different ports. look into this link Multiple laravel projects at same time

Rishi
  • 1
  • 2
0

You should install valet

easiest and minified web server to user

composer global require laravel/valet

CodexVarg
  • 502
  • 1
  • 6
  • 20