added account events
This commit is contained in:
21
app/Events/Banking/AccountCreated.php
Normal file
21
app/Events/Banking/AccountCreated.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Banking;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
use App\Models\Banking\Account;
|
||||
|
||||
class AccountCreated extends Event
|
||||
{
|
||||
public $account;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $account
|
||||
*/
|
||||
public function __construct(Account $account)
|
||||
{
|
||||
$this->account = $account;
|
||||
}
|
||||
}
|
||||
20
app/Events/Banking/AccountCreating.php
Normal file
20
app/Events/Banking/AccountCreating.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Banking;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class AccountCreating extends Event
|
||||
{
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
20
app/Events/Banking/AccountDeleted.php
Normal file
20
app/Events/Banking/AccountDeleted.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Banking;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class AccountDeleted extends Event
|
||||
{
|
||||
public $account;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $account
|
||||
*/
|
||||
public function __construct($account)
|
||||
{
|
||||
$this->account = $account;
|
||||
}
|
||||
}
|
||||
20
app/Events/Banking/AccountDeleting.php
Normal file
20
app/Events/Banking/AccountDeleting.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Banking;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class AccountDeleting extends Event
|
||||
{
|
||||
public $account;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $account
|
||||
*/
|
||||
public function __construct($account)
|
||||
{
|
||||
$this->account = $account;
|
||||
}
|
||||
}
|
||||
25
app/Events/Banking/AccountUpdated.php
Normal file
25
app/Events/Banking/AccountUpdated.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Banking;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
use App\Models\Banking\Account;
|
||||
|
||||
class AccountUpdated extends Event
|
||||
{
|
||||
public $account;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $account
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct(Account $account, $request)
|
||||
{
|
||||
$this->account = $account;
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
25
app/Events/Banking/AccountUpdating.php
Normal file
25
app/Events/Banking/AccountUpdating.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Banking;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
use App\Models\Banking\Account;
|
||||
|
||||
class AccountUpdating extends Event
|
||||
{
|
||||
public $account;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $account
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct(Account $account, $request)
|
||||
{
|
||||
$this->account = $account;
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user