53 lines
2.1 KiB
PHP
53 lines
2.1 KiB
PHP
<?php
|
||
|
||
namespace Database\Seeders;
|
||
|
||
use Illuminate\Database\Seeder;
|
||
use Illuminate\Support\Facades\DB;
|
||
|
||
/**
|
||
* メールテンプレートシーダー
|
||
* テスト用のメールテンプレートデータを作成
|
||
*/
|
||
class MailTemplateSeeder extends Seeder
|
||
{
|
||
/**
|
||
* シーダーを実行
|
||
*
|
||
* @return void
|
||
*/
|
||
public function run()
|
||
{
|
||
// テスト用メールテンプレートデータを挿入
|
||
DB::table('mail_template')->insert([
|
||
[
|
||
'mail_template_id' => 999,
|
||
'pg_id' => 1, // 使用プログラムID(テスト用)
|
||
'internal_id' => 1,
|
||
'mgr_cc_flag' => 1, // エリアマネージャー同報有効
|
||
'bcc_adrs' => 'manager@so-manager.test.com',
|
||
'use_flag' => 1, // 使用フラグ有効
|
||
'memo' => 'テスト用メールテンプレート',
|
||
'subject' => 'So-Manager システム通知テスト',
|
||
'text' => "いつもSo-Managerをご利用いただき、ありがとうございます。\n\nこちらはシステムからの自動送信テストメールです。\n\n何かご不明な点がございましたら、サポートまでお問い合わせください。\n\nSo-Manager運営チーム",
|
||
'created_at' => now(),
|
||
'updated_at' => now(),
|
||
'operator_id' => 1
|
||
],
|
||
[
|
||
'mail_template_id' => 998,
|
||
'pg_id' => 2, // 使用プログラムID(テスト用)
|
||
'internal_id' => 2,
|
||
'mgr_cc_flag' => 0, // エリアマネージャー同報無効
|
||
'bcc_adrs' => null,
|
||
'use_flag' => 1, // 使用フラグ有効
|
||
'memo' => 'シンプルなメールテンプレート',
|
||
'subject' => 'So-Manager お知らせ',
|
||
'text' => "お客様へ\n\nSo-Managerからのお知らせです。\n\nよろしくお願いいたします。",
|
||
'created_at' => now(),
|
||
'updated_at' => now(),
|
||
'operator_id' => 1
|
||
]
|
||
]);
|
||
}
|
||
} |