ok
This commit is contained in:
14
Production/SNIPE-IT/app/Models/Recipients/AdminRecipient.php
Normal file
14
Production/SNIPE-IT/app/Models/Recipients/AdminRecipient.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Recipients;
|
||||
|
||||
use App\Models\Setting;
|
||||
|
||||
class AdminRecipient extends Recipient
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$settings = Setting::getSettings();
|
||||
$this->email = trim($settings->admin_cc_email);
|
||||
}
|
||||
}
|
11
Production/SNIPE-IT/app/Models/Recipients/AlertRecipient.php
Normal file
11
Production/SNIPE-IT/app/Models/Recipients/AlertRecipient.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Recipients;
|
||||
|
||||
class AlertRecipient extends Recipient
|
||||
{
|
||||
public function __construct(string $email)
|
||||
{
|
||||
$this->email = trim($email);
|
||||
}
|
||||
}
|
12
Production/SNIPE-IT/app/Models/Recipients/Recipient.php
Normal file
12
Production/SNIPE-IT/app/Models/Recipients/Recipient.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Recipients;
|
||||
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
abstract class Recipient
|
||||
{
|
||||
use Notifiable;
|
||||
|
||||
protected $email;
|
||||
}
|
Reference in New Issue
Block a user