Skip to content

Commit

Permalink
Merge pull request #3084 from CihanSenturk/add-new-events
Browse files Browse the repository at this point in the history
Add new events
  • Loading branch information
cuneytsenturk committed Oct 31, 2023
2 parents 1ab7fec + 2b29089 commit 3481f9c
Show file tree
Hide file tree
Showing 36 changed files with 598 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/Events/Common/ContactCreated.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Common/ContactCreating.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Common/ContactDeleted.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Common/ContactDeleting.php
@@ -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;
}
}
25 changes: 25 additions & 0 deletions app/Events/Common/ContactUpdated.php
@@ -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;
}
}
25 changes: 25 additions & 0 deletions app/Events/Common/ContactUpdating.php
@@ -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;
}
}
21 changes: 21 additions & 0 deletions app/Events/Common/ItemCreated.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Common/ItemCreating.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Common/ItemDeleted.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Common/ItemDeleting.php
@@ -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;
}
}
25 changes: 25 additions & 0 deletions app/Events/Common/ItemUpdated.php
@@ -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;
}
}
25 changes: 25 additions & 0 deletions app/Events/Common/ItemUpdating.php
@@ -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;
}
}
24 changes: 24 additions & 0 deletions app/Events/Setting/CurrencyCreated.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Setting/CurrencyCreating.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Setting/CurrencyDeleted.php
@@ -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;
}
}
20 changes: 20 additions & 0 deletions app/Events/Setting/CurrencyDeleting.php
@@ -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;
}
}
24 changes: 24 additions & 0 deletions app/Events/Setting/CurrencyUpdated.php
@@ -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;
}
}

0 comments on commit 3481f9c

Please sign in to comment.