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

gego's avatar
Level 2

Add Request::url() to Error logs

Hi, I want to add Request::url() to error log files, to log where error happend at

0 likes
1 reply
bobbybouwmann's avatar

Why don't you just log the message for yourself?

Log::info(Request::url());

Now you only need to find a good place to do this! You can add it either to the report or render function (or both) in the Handler class which is located in app/Exception/Handler.php

Logging: http://laravel.com/docs/5.0/errors#logging

Please or to participate in this conversation.