Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add document deleting and document deleted events
- Loading branch information
novag
committed
Jan 14, 2023
1 parent
c34de72
commit b3fb6b9
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Events\Document; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class DocumentDeleted extends Event | ||
{ | ||
public $document; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $document | ||
*/ | ||
public function __construct($document) | ||
{ | ||
$this->document = $document; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Events\Document; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class DocumentDeleting extends Event | ||
{ | ||
public $document; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $document | ||
*/ | ||
public function __construct($document) | ||
{ | ||
$this->document = $document; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters