Add Notification class to DocumentReminded event
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user