When using a helper {{ route('anyroute') }} without the necessary route parameters (by accident), Laravel throws a UrlGenerationException, sending a log line to stderr that breaks the server.
The issue is the datetime string at the beginning, which getRequestPortFromLine is not prepared to parse. In Laravel 10, the same line does not display that datetime.
The problem only occurs when using LOG_CHANNEL=stderr.
Laravel Version
11.32.0
PHP Version
8.2.25
Database Driver & Version
No response
Description
When using a helper
{{ route('anyroute') }}
without the necessary route parameters (by accident), Laravel throws aUrlGenerationException
, sending a log line to stderr that breaks the server.The issue is the datetime string at the beginning, which
getRequestPortFromLine
is not prepared to parse. In Laravel 10, the same line does not display that datetime.The problem only occurs when using
LOG_CHANNEL=stderr
.Steps To Reproduce
Install Laravel 11
Change LOG_CHANNEL to stderr
Create routes with any parameter
Create their views with routes missing required parameters
Run the server
Access any route with parameter
Server will throw an error, exit to the command line, and stop working