FEATURE: add string id into seeder of action log types.
This commit is contained in:
@@ -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
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user