Skip to content

Commit

Permalink
Making more friendly to config caching in >laravel 5.2 pulling env in…
Browse files Browse the repository at this point in the history
…formation from config instead of env helper
  • Loading branch information
abrigham1 committed May 29, 2017
1 parent 04264ad commit 21adeed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/EmailHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function mailException(Exception $exception)

Mail::send('laravelEmailExceptions::emailException', $data, function ($message) {

$default = 'An Exception has been thrown on '.env('APP_URL', 'unknown').' ('.env('APP_ENV', 'unknown').')';
$default = 'An Exception has been thrown on '.config('app.name', 'unknown').' ('.config('app.env', 'unknown').')';
$subject = config('laravelEmailExceptions.ErrorEmail.emailSubject') ?: $default;

$message->from(config('laravelEmailExceptions.ErrorEmail.fromEmailAddress'))
Expand Down

0 comments on commit 21adeed

Please sign in to comment.