How to run multiple Laravel projects at same time?

后端 未结 3 1098

To run one laravel project we only need to type \"php artisan serve\". and it will be available on port 8000.

But sometimes we need to run multiple projects at the same

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 04:38

    tl;dr one cannot have more than one listener per TCP port at the same time. If you need more web server instances: try another port:

    php artisan serve --port=8001
    

    then go to http://localhost:8001


    References:

    • Can two applications listen to the same port?
    • https://laravel.com/docs/8.x

提交回复
热议问题