Skip to content

Commit

Permalink
Add environment in notification app name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Mar 8, 2022
1 parent 1066a5e commit e6883aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Notifications/BaseNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public function via(): array

public function applicationName(): string
{
return config('app.name') ?? config('app.url') ?? 'Laravel application';
$name = config('app.name') ?? config('app.url') ?? 'Laravel application';
$env = app()->environment();

return "{$name} ({$env})";
}

public function backupName(): string
Expand Down

0 comments on commit e6883aa

Please sign in to comment.