-
-
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.
Merge pull request #3084 from CihanSenturk/add-new-events
Add new events
- Loading branch information
Showing
36 changed files
with
598 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Events\Setting; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class CurrencyCreated extends Event | ||
{ | ||
public $currency; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $currency | ||
* @param $request | ||
*/ | ||
public function __construct($currency, $request) | ||
{ | ||
$this->currency = $currency; | ||
$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\Setting; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class CurrencyCreating 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\Setting; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class CurrencyDeleted extends Event | ||
{ | ||
public $currency; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $currency | ||
*/ | ||
public function __construct($currency) | ||
{ | ||
$this->currency = $currency; | ||
} | ||
} |
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\Setting; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class CurrencyDeleting extends Event | ||
{ | ||
public $currency; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $currency | ||
*/ | ||
public function __construct($currency) | ||
{ | ||
$this->currency = $currency; | ||
} | ||
} |
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,24 @@ | ||
<?php | ||
|
||
namespace App\Events\Setting; | ||
|
||
use App\Abstracts\Event; | ||
|
||
class CurrencyUpdated extends Event | ||
{ | ||
public $currency; | ||
|
||
public $request; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param $currency | ||
* @param $request | ||
*/ | ||
public function __construct($currency, $request) | ||
{ | ||
$this->currency = $currency; | ||
$this->request = $request; | ||
} | ||
} |
Oops, something went wrong.