* Fixed #5965: Allow multiple alert email addresses * Style changes based on PR feedback.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Recipients;
|
||||
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
abstract class Recipient {
|
||||
|
||||
abstract class Recipient
|
||||
{
|
||||
use Notifiable;
|
||||
|
||||
protected $email;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user