FEATURE #1532: add ip and user agent into logged information

This commit is contained in:
Michal Kváček
2016-04-03 02:13:46 +02:00
parent 9f8eb230e8
commit 7de45fe377
6 changed files with 121 additions and 38 deletions
+18 -6
View File
@@ -27,15 +27,27 @@ class SeedActionLogTypes extends Seeder
'removeWidgetFromArea',
'editWidget',
'editWidgetArea',
'invalidEditContentAttempt',
'createNewContent',
'deleteContent',
'publishContent',
'draftFromContent',
'editContent',
'setHomepage',
];
foreach ($types as $type) {
\DB::table('action_log_types')
->insert([
'string_id' => $type,
'name' => 'admin/actionLog.name' . ucfirst($type),
'value' => 'admin/actionLog.' . $type
]);
try {
\DB::table('action_log_types')
->insert([
'string_id' => $type,
'name' => 'admin/actionLog.name' . ucfirst($type),
'value' => 'admin/actionLog.' . $type
]);
} catch (Exception $e) {
// ignore exception
echo $type . ' already seeded' . "\n";
}
}
}
}