Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

joylan23's avatar

HOW TO RUN MULTIPLE LARAVEL PROJECT?

it is possible to run multiple project without using docker?

  • "if yes, how do I do it?"
0 likes
11 replies
Sinnbeck's avatar

You can use php artisan serve to run the project. And just have a mysql instance with more than one database in it. What OS are you on?

joylan23's avatar

@Sinnbeck I used only 1 database in three different Laravel project. how to do it ?

Sinnbeck's avatar

@joylan23 So they should all share the same database or? In not, you can make extra databases using your database manager. And how can you do what?

joylan23's avatar

@Sinnbeck Yes, They share the same database. I want to run it at the same time. And I have difficulty doing it.

tykus's avatar

@joylan23 what does this mean?

I want to run it at the same time

If you have a database; all three of your apps should be able to connect using the same credentials. What are you actually using for your development environment?

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@joylan23 Well if you use php artisan serve you can define a port number

 php artisan serve --port 1234

But if you are on Mac, I would suggest using valet instead.

1 like
joylan23's avatar

@tykus I run it one by one. If I want to run on the admin side. I should stop the server on the user side. I want them to run same time :(

joylan23's avatar

@Sinnbeck I tried running the other project with a different port but it doesn't work. it doesn't serve.

tykus's avatar

Do you mean in development?

You can use Laravel Valet along with local installations of your preferred database, caching service, mail trapping...

Or you can use Laravel Sail (which is Docker).

Or you can use XAMPP (or equivalent)

Or you can use Laravel Homestead

joylan23's avatar

@tykus I create a progressive web app in three different projects with a single database. and I want to run them at the same time I try to used laravel sail. I used windows and I have difficulty doing it .

Please or to participate in this conversation.