Add Notification class to DocumentReminded event
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
namespace App\Events\Purchase;
|
||||
|
||||
use App\Events\Document\DocumentReminded;
|
||||
use App\Models\Document\Document;
|
||||
use App\Notifications\Purchase\Bill as Notification;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
@ -10,4 +12,8 @@ use App\Events\Document\DocumentReminded;
|
||||
*/
|
||||
class BillReminded extends DocumentReminded
|
||||
{
|
||||
public function __construct(Document $document)
|
||||
{
|
||||
parent::__construct($document, Notification::class);
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,8 @@
|
||||
namespace App\Events\Sale;
|
||||
|
||||
use App\Events\Document\DocumentReminded;
|
||||
use App\Models\Document\Document;
|
||||
use App\Notifications\Sale\Invoice as Notification;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
@ -10,4 +12,8 @@ use App\Events\Document\DocumentReminded;
|
||||
*/
|
||||
class InvoiceReminded extends DocumentReminded
|
||||
{
|
||||
public function __construct(Document $document)
|
||||
{
|
||||
parent::__construct($document, Notification::class);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user