Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ab7fec
commit 67969d0
Showing
9 changed files
with
149 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,21 @@ | ||
<?php | ||
|
||
namespace App\Events\Common; | ||
|
||
use App\Abstracts\Event; | ||
use App\Models\Common\Contact; | ||
|
||
class ContactCreated extends Event | ||
{ | ||
public $contact; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $contact | ||
*/ | ||
public function __construct(Contact $contact) | ||
{ | ||
$this->contact = $contact; | ||
} | ||
} |
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 ContactCreating extends Event | ||
{ | ||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $request | ||
*/ | ||
public function __construct($request) | ||
{ | ||
$this->request = $request; | ||
} | ||
} |
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 ContactDeleted extends Event | ||
{ | ||
public $contact; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $contact | ||
*/ | ||
public function __construct($contact) | ||
{ | ||
$this->contact = $contact; | ||
} | ||
} |
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 ContactDeleting extends Event | ||
{ | ||
public $contact; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $contact | ||
*/ | ||
public function __construct($contact) | ||
{ | ||
$this->contact = $contact; | ||
} | ||
} |
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,25 @@ | ||
<?php | ||
|
||
namespace App\Events\Common; | ||
|
||
use App\Abstracts\Event; | ||
use App\Models\Common\Contact; | ||
|
||
class ContactUpdated extends Event | ||
{ | ||
public $contact; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $contact | ||
* @param $request | ||
*/ | ||
public function __construct(Contact $contact, $request) | ||
{ | ||
$this->contact = $contact; | ||
$this->request = $request; | ||
} | ||
} |
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,25 @@ | ||
<?php | ||
|
||
namespace App\Events\Common; | ||
|
||
use App\Abstracts\Event; | ||
use App\Models\Common\Contact; | ||
|
||
class ContactUpdating extends Event | ||
{ | ||
public $contact; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $contact | ||
* @param $request | ||
*/ | ||
public function __construct(Contact $contact, $request) | ||
{ | ||
$this->contact = $contact; | ||
$this->request = $request; | ||
} | ||
} |
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
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
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