Why can't production? be deployed with php artisan serve

after the development of the Laravel project is complete, I use nginx as the http server.

however, I have a problem that I don"t understand, which is Why can"t production? be deployed directly with php artisan serve

at present, I only know that nginx can do such things as Reverse Proxy and Load balancing, but if the traffic of the web site is very small and it is only deployed on one server, it seems that you don"t need to care about these things, so php artisan serve seems to be a feasible solution, doesn"t it?

I will teach you all.

Aug.13,2021

built-in Web Server

PHP 5.4.0, CLI SAPI provides a built-in Web server.

this built-in Web server is mainly used for local development and cannot be used in online production environments.

PHP: built-in Web Server-Manual- http://php.net/manual/zh/feat.
Menu