From 90e1a949623ead173c0952f802d7b5c5487251b1 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 5 Oct 2018 15:35:14 +0200 Subject: Make application name configurable * Added app_name configuration option * Extended `EngelsystemMailer` to prepend the application name to all mails Closes #426 --- config/config.default.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/config.default.php b/config/config.default.php index 56ac6e6a..4207754b 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -17,6 +17,9 @@ return [ // Enable maintenance mode (show a static page) 'maintenance' => (bool)env('MAINTENANCE', false), + // Application name (not the event name!) + 'app_name' => env('APP_NAME', 'Engelsystem'), + // Set to development to enable debugging messages 'environment' => env('ENVIRONMENT', 'production'), @@ -36,7 +39,7 @@ return [ 'from' => [ // From address of all emails 'address' => env('MAIL_FROM_ADDRESS', 'noreply@engelsystem.de'), - 'name' => env('MAIL_FROM_NAME', 'Engelsystem') + 'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Engelsystem')) ], 'host' => env('MAIL_HOST', 'localhost'), -- cgit v1.2.3-54-g00ecf