Add Notification class to DocumentReminded event
This commit is contained in:
@@ -2,21 +2,20 @@
|
||||
|
||||
namespace App\Events\Document;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use App\Abstracts\Event;
|
||||
use App\Models\Document\Document;
|
||||
|
||||
class DocumentRecurring
|
||||
class DocumentRecurring extends Event
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $document;
|
||||
public $notification;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $document
|
||||
*/
|
||||
public function __construct($document)
|
||||
public function __construct(Document $document, string $notification)
|
||||
{
|
||||
$this->document = $document;
|
||||
$this->document = $document;
|
||||
$this->notification = $notification;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user