FEATURE: add string id into seeder of action log types.

This commit is contained in:
Michal Kváček
2016-01-28 22:44:03 +01:00
parent 26873a2db4
commit 859d3ce753
+3 -4
View File
@@ -14,9 +14,7 @@ class SeedActionLogTypes extends Seeder
$types = [ $types = [
'login', 'login',
'logout', 'logout',
'selfUserEdit',
'userEdit', 'userEdit',
'changePassword',
'newCustomField', 'newCustomField',
'editCustomField', 'editCustomField',
'deleteCustomField', 'deleteCustomField',
@@ -26,8 +24,9 @@ class SeedActionLogTypes extends Seeder
foreach ($types as $type) { foreach ($types as $type) {
\DB::table('action_log_types') \DB::table('action_log_types')
->insert([ ->insert([
'name' => 'admin/actionLog.name' . ucfirst($type), 'string_id' => $type,
'value' => 'admin/actionLog.' . $type 'name' => 'admin/actionLog.name' . ucfirst($type),
'value' => 'admin/actionLog.' . $type
]); ]);
} }
} }