Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Remove unnecessary _token field from input
Browse files Browse the repository at this point in the history
  • Loading branch information
nztim committed May 28, 2015
1 parent f74ef6f commit 012a664
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Logger.php
Expand Up @@ -78,7 +78,7 @@ protected function writeExceptionMessage($handlerName, Exception $e)
file_put_contents($filename, $message, FILE_APPEND);
}

public function requestInfo()
public function requestInfo()
{
$info = [];
$info['ip'] = $this->request->getClientIp();
Expand All @@ -88,11 +88,11 @@ public function requestInfo()
$info['userid'] = Auth::user()->id;
}
$input = $this->request->all();
if(isset($input['password'])) {
unset($input['password']);
}
if(isset($input['password_confirmation'])) {
unset($input['password_confirmation']);
$remove = ['password', 'password_confirmation', '_token'];
foreach ($remove as $item) {
if (isset($input[$item])) {
unset($input[$item]);
}
}
$info['input'] = $input;
return $info;
Expand Down

0 comments on commit 012a664

Please sign in to comment.