krgm.so-manager-dev.com/database/seeders/MailTemplateSeeder.php

53 lines
2.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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
]
]);
}
}