From c0f6b8eb2b4d4d25f24131dd29434527b725ba4b Mon Sep 17 00:00:00 2001 From: Bowen Date: Tue, 13 Jan 2026 22:01:16 +0800 Subject: [PATCH 1/2] upgrade: v1.17.0 --- config/mail.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/config/mail.go b/config/mail.go index 0439cd6..14e7bb1 100644 --- a/config/mail.go +++ b/config/mail.go @@ -39,5 +39,28 @@ func init() { "username": config.Env("MAIL_USERNAME"), "password": config.Env("MAIL_PASSWORD"), + + // Template Configuration + // + // This controls template rendering for email views. Template engines are cached + // globally and support both built-in drivers and custom implementations via factories. + // + // Available Drivers: "html", "custom" + "template": map[string]any{ + "default": config.Env("MAIL_TEMPLATE_ENGINE", "html"), + "engines": map[string]any{ + "html": map[string]any{ + "driver": "html", + "path": config.Env("MAIL_VIEWS_PATH", "resources/views/mail"), + }, + // Example custom template engine: + // "blade": map[string]any{ + // "driver": "custom", + // "via": func() (mail.Template, error) { + // return NewBladeTemplateEngine(), nil + // }, + // }, + }, + }, }) } From 21776e77f91fa10332bb3df2e8931b96d99f1c68 Mon Sep 17 00:00:00 2001 From: Bowen Date: Thu, 15 Jan 2026 18:57:27 +0800 Subject: [PATCH 2/2] optimize --- .gitignore | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4d66fac..53fa944 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ .idea +.vscode .DS_Store -storage/framework -launch.json \ No newline at end of file +.env +.env.* +!.env.example +storage +tmp