Add Notification class to DocumentReminded event

This commit is contained in:
Burak Çakırel
2020-12-25 22:30:59 +03:00
parent 2d023873cc
commit ec7511a8bc
6 changed files with 22 additions and 11 deletions

View File

@@ -3,18 +3,22 @@
namespace App\Events\Document;
use App\Abstracts\Event;
use App\Models\Document\Document;
class DocumentReminded extends Event
{
public $document;
public $notification;
/**
* Create a new event instance.
*
* @param $document
* @param $notification
*/
public function __construct($document)
public function __construct(Document $document, string $notification)
{
$this->document = $document;
$this->notification = $notification;
}
}