-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added events for relationships #nka5y8 #2181
- Loading branch information
1 parent
8f32f37
commit 3c55dfd
Showing
3 changed files
with
54 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\Common; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class RelationshipCounting extends Event | ||
{ | ||
public $record; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $record | ||
*/ | ||
public function __construct($record) | ||
{ | ||
$this->record = $record; | ||
} | ||
} |
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\Common; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class RelationshipDeleting extends Event | ||
{ | ||
public $record; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $record | ||
*/ | ||
public function __construct($record) | ||
{ | ||
$this->record = $record; | ||
} | ||
} |
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
@denisdulici it should use the
$record->relationships