When I run it outputs:
php artisan serve --port=80
Laravel development server started on http://localhost:80
How can I make it run in the background, when I exit the console the server stops.
When I run it outputs:
php artisan serve --port=80
Laravel development server started on http://localhost:80
How can I make it run in the background, when I exit the console the server stops.
Short answer: DON'T
The web server
artisan
uses is the PHP built-in web server, which is not for use in any scenario other than development as showcased by this excerpt from the Built-in web server documentation:In production you should be using a fully featured web server such as nginx, Apache, lighttpd, etc.