From 9c073b079c1b3c72a4dacaa12579aca978ea5e6a Mon Sep 17 00:00:00 2001 From: Apoorv Darshan Date: Thu, 19 Feb 2026 01:54:46 +0530 Subject: [PATCH] [12.x] Add `APP_NAME` fallback in mail config (#6755) The `MAIL_FROM_NAME` config value falls back to the generic "Example" when unset. This updates the fallback to use `APP_NAME` instead, matching the convention in `.env.example` where `MAIL_FROM_NAME` references `${APP_NAME}`. --- config/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mail.php b/config/mail.php index 522b284b..e32e88da 100644 --- a/config/mail.php +++ b/config/mail.php @@ -112,7 +112,7 @@ return [ 'from' => [ 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), - 'name' => env('MAIL_FROM_NAME', 'Example'), + 'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Laravel')), ], ];