HOW TO RUN MULTIPLE LARAVEL PROJECT? it is possible to run multiple project without using docker?
"if yes, how do I do it?"
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?
@Sinnbeck I used only 1 database in three different Laravel project. how to do it ?
@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?
@Sinnbeck Yes, They share the same database. I want to run it at the same time. And I have difficulty doing it.
@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?
@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.
@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 :(
@Sinnbeck I tried running the other project with a different port but it doesn't work. it doesn't serve.
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
@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 sign in or create an account to participate in this conversation.