Added Transaction job new events..
This commit is contained in:
		
							
								
								
									
										26
									
								
								app/Events/Banking/DocumentTransactionCreated.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								app/Events/Banking/DocumentTransactionCreated.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Events\Banking; | ||||
|  | ||||
| use App\Abstracts\Event; | ||||
| use App\Models\Banking\Transaction; | ||||
| use App\Models\Document\Document; | ||||
|  | ||||
| class DocumentTransactionCreated extends Event | ||||
| { | ||||
|     public $document; | ||||
|  | ||||
|     public $transaction; | ||||
|  | ||||
|     /** | ||||
|      * Create a new event instance. | ||||
|      * | ||||
|      * @param $document | ||||
|      * @param $transaction | ||||
|      */ | ||||
|     public function __construct(Document $document, Transaction $transaction) | ||||
|     { | ||||
|         $this->document = $document; | ||||
|         $this->transaction = $transaction; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										25
									
								
								app/Events/Banking/DocumentTransactionCreating.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								app/Events/Banking/DocumentTransactionCreating.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Events\Banking; | ||||
|  | ||||
| use App\Abstracts\Event; | ||||
| use App\Models\Document\Document; | ||||
|  | ||||
| class DocumentTransactionCreating extends Event | ||||
| { | ||||
|     public $document; | ||||
|  | ||||
|     public $request; | ||||
|  | ||||
|     /** | ||||
|      * Create a new event instance. | ||||
|      * | ||||
|      * @param $document | ||||
|      * @param $request | ||||
|      */ | ||||
|     public function __construct(Document $document, $request) | ||||
|     { | ||||
|         $this->document = $document; | ||||
|         $this->request = $request; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										30
									
								
								app/Events/Banking/DocumentTransactionUpdated.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								app/Events/Banking/DocumentTransactionUpdated.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Events\Banking; | ||||
|  | ||||
| use App\Abstracts\Event; | ||||
| use App\Models\Banking\Transaction; | ||||
| use App\Models\Document\Document; | ||||
|  | ||||
| class DocumentTransactionUpdated extends Event | ||||
| { | ||||
|     public $document; | ||||
|  | ||||
|     public $transaction; | ||||
|  | ||||
|     public $request; | ||||
|  | ||||
|     /** | ||||
|      * Create a new event instance. | ||||
|      * | ||||
|      * @param $document | ||||
|      * @param $transaction | ||||
|      * @param $request | ||||
|      */ | ||||
|     public function __construct(Document $document, Transaction $transaction, $request) | ||||
|     { | ||||
|         $this->document = $document; | ||||
|         $this->transaction = $transaction; | ||||
|         $this->request  = $request; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										30
									
								
								app/Events/Banking/DocumentTransactionUpdating.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								app/Events/Banking/DocumentTransactionUpdating.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Events\Banking; | ||||
|  | ||||
| use App\Abstracts\Event; | ||||
| use App\Models\Banking\Transaction; | ||||
| use App\Models\Document\Document; | ||||
|  | ||||
| class DocumentTransactionUpdating extends Event | ||||
| { | ||||
|     public $document; | ||||
|  | ||||
|     public $transaction; | ||||
|  | ||||
|     public $request; | ||||
|  | ||||
|     /** | ||||
|      * Create a new event instance. | ||||
|      * | ||||
|      * @param $document | ||||
|      * @param $transaction | ||||
|      * @param $request | ||||
|      */ | ||||
|     public function __construct(Document $document, Transaction $transaction, $request) | ||||
|     { | ||||
|         $this->document = $document; | ||||
|         $this->transaction = $transaction; | ||||
|         $this->request  = $request; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										25
									
								
								app/Events/Banking/TransactionUpdated.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								app/Events/Banking/TransactionUpdated.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Events\Banking; | ||||
|  | ||||
| use App\Abstracts\Event; | ||||
| use App\Models\Banking\Transaction; | ||||
|  | ||||
| class TransactionUpdated extends Event | ||||
| { | ||||
|     public $transaction; | ||||
|  | ||||
|     public $request; | ||||
|  | ||||
|     /** | ||||
|      * Create a new event instance. | ||||
|      * | ||||
|      * @param $transaction | ||||
|      * @param $request | ||||
|      */ | ||||
|     public function __construct(Transaction $transaction, $request) | ||||
|     { | ||||
|         $this->transaction = $transaction; | ||||
|         $this->request  = $request; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										25
									
								
								app/Events/Banking/TransactionUpdating.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								app/Events/Banking/TransactionUpdating.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Events\Banking; | ||||
|  | ||||
| use App\Abstracts\Event; | ||||
| use App\Models\Banking\Transaction; | ||||
|  | ||||
| class TransactionUpdating extends Event | ||||
| { | ||||
|     public $transaction; | ||||
|  | ||||
|     public $request; | ||||
|  | ||||
|     /** | ||||
|      * Create a new event instance. | ||||
|      * | ||||
|      * @param $transaction | ||||
|      * @param $request | ||||
|      */ | ||||
|     public function __construct(Transaction $transaction, $request) | ||||
|     { | ||||
|         $this->transaction = $transaction; | ||||
|         $this->request  = $request; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user