summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-05 15:35:14 +0200
committermsquare <msquare@notrademark.de>2018-10-30 22:50:22 +0100
commit90e1a949623ead173c0952f802d7b5c5487251b1 (patch)
tree544d29dde573cb135b514d0a84c2d95e9207392c /config
parent0aa5f079258afd5276917c1aff565ec1c6411821 (diff)
Make application name configurable
* Added app_name configuration option * Extended `EngelsystemMailer` to prepend the application name to all mails Closes #426
Diffstat (limited to 'config')
-rw-r--r--config/config.default.php5
1 files changed, 4 insertions, 1 deletions
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'),