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
67969d0
commit 6af4c75
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\Item; | ||
|
||
class ItemCreated extends Event | ||
{ | ||
public $item; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $item | ||
*/ | ||
public function __construct(Item $item) | ||
{ | ||
$this->item = $item; | ||
} | ||
} |
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 ItemCreating 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 ItemDeleted extends Event | ||
{ | ||
public $item; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $item | ||
*/ | ||
public function __construct($item) | ||
{ | ||
$this->item = $item; | ||
} | ||
} |
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 ItemDeleting extends Event | ||
{ | ||
public $item; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $item | ||
*/ | ||
public function __construct($item) | ||
{ | ||
$this->item = $item; | ||
} | ||
} |
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\Item; | ||
|
||
class ItemUpdated extends Event | ||
{ | ||
public $item; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $item | ||
* @param $request | ||
*/ | ||
public function __construct(Item $item, $request) | ||
{ | ||
$this->item = $item; | ||
$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\Item; | ||
|
||
class ItemUpdating extends Event | ||
{ | ||
public $item; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $item | ||
* @param $request | ||
*/ | ||
public function __construct(Item $item, $request) | ||
{ | ||
$this->item = $item; | ||
$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