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

kitchh's avatar

How to suppress connection related logs in php artisan serve console?

Are there any config flags/parameters which we can be set in the .env file to supress the tcp connection related messages (accepted, close etc) and the optionally the http messages (200 GET etc) that appear on the artisan console when we are developing locally? (running the inbuilt php server with php artisan serve).

Reason to ask - there will be tons of lines in the console and if we can (optionally) supress some mundane logs like the ones above, the debug info if any will be easier to locate.

Could not find anything in the documentation (glanced through it to be frank) about this.

0 likes
1 reply
Snapey's avatar

just start it and minimise the console - you are unlikely to see anything useful there

Please or to participate in this conversation.