-
-
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.
Add company create and update events
- Loading branch information
1 parent
c72b519
commit 0dfb759
Showing
6 changed files
with
108 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,22 @@ | ||
<?php | ||
|
||
namespace App\Events\Common; | ||
|
||
use Illuminate\Queue\SerializesModels; | ||
|
||
class CompanyCreated | ||
{ | ||
use SerializesModels; | ||
|
||
public $company; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $company | ||
*/ | ||
public function __construct($company) | ||
{ | ||
$this->company = $company; | ||
} | ||
} |
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,22 @@ | ||
<?php | ||
|
||
namespace App\Events\Common; | ||
|
||
use Illuminate\Queue\SerializesModels; | ||
|
||
class CompanyCreating | ||
{ | ||
use SerializesModels; | ||
|
||
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,26 @@ | ||
<?php | ||
|
||
namespace App\Events\Common; | ||
|
||
use Illuminate\Queue\SerializesModels; | ||
|
||
class CompanyUpdated | ||
{ | ||
use SerializesModels; | ||
|
||
public $company; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $company | ||
* @param $request | ||
*/ | ||
public function __construct($company, $request) | ||
{ | ||
$this->company = $company; | ||
$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,26 @@ | ||
<?php | ||
|
||
namespace App\Events\Common; | ||
|
||
use Illuminate\Queue\SerializesModels; | ||
|
||
class CompanyUpdating | ||
{ | ||
use SerializesModels; | ||
|
||
public $company; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $company | ||
* @param $request | ||
*/ | ||
public function __construct($company, $request) | ||
{ | ||
$this->company = $company; | ||
$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