Add previous URL to logs

This commit is contained in:
Hillel Coren 2017-03-24 17:38:42 +03:00
parent 5384b79082
commit 5c98c73fde

View File

@ -394,6 +394,7 @@ class Utils
'user_name' => Auth::check() ? Auth::user()->getDisplayName() : '',
'method' => Request::method(),
'url' => Input::get('url', Request::url()),
'previous' => url()->previous(),
'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '',
'ip' => Request::getClientIp(),
'count' => Session::get('error_count', 0),