Skip to content

[ログ管理]インストール時に初期値で取得するログの設定を追加しました。 #2012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions database/seeders/DefaultConfigsTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,31 @@ public function run()
]);
}

if (Configs::where('category', 'app_log')->count() == 0) {
// 取得するログの初期値の設定
$configs = Configs::insert([
[
'name' => 'app_log_scope',
'category' => 'app_log',
'value' => 'select'
], [
'name' => 'save_log_type_login',
'category' => 'app_log',
'value' => '1'
], [
'name' => 'save_log_type_sendmail',
'category' => 'app_log',
'value' => '1'
], [
'name' => 'save_log_type_password',
'category' => 'app_log',
'value' => '1'
], [
'name' => 'save_log_type_register',
'category' => 'app_log',
'value' => '1'
]]);
}

}
}