Fixed #5965: Allow multiple alert email addresses (#6233)

* Fixed #5965: Allow multiple alert email addresses

* Style changes based on PR feedback.
This commit is contained in:
Wes Hulette
2018-09-26 17:07:41 -04:00
committed by snipe
parent 82affd5154
commit 16e56646b8
7 changed files with 63 additions and 90 deletions
+5 -8
View File
@@ -1,14 +1,11 @@
<?php
namespace App\Models\Recipients;
use App\Models\Setting;
class AlertRecipient extends Recipient{
public function __construct()
class AlertRecipient extends Recipient
{
public function __construct(string $email)
{
$settings = Setting::getSettings();
$this->email = $settings->alert_email;
$this->email = trim($email);
}
}
+3 -3
View File
@@ -1,12 +1,12 @@
<?php
namespace App\Models\Recipients;
use Illuminate\Notifications\Notifiable;
abstract class Recipient {
abstract class Recipient
{
use Notifiable;
protected $email;
}