v2 first commit
This commit is contained in:
26
app/Events/Common/CompanySwitched.php
Normal file
26
app/Events/Common/CompanySwitched.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Common;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class CompanySwitched
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $company;
|
||||
|
||||
public $old_company_id;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $company
|
||||
* @param $old_company_id
|
||||
*/
|
||||
public function __construct($company, $old_company_id)
|
||||
{
|
||||
$this->company = $company;
|
||||
$this->old_company_id = $old_company_id;
|
||||
}
|
||||
}
|
||||
30
app/Events/Common/ReportFilterApplying.php
Normal file
30
app/Events/Common/ReportFilterApplying.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Common;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class ReportFilterApplying
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $class;
|
||||
|
||||
public $model;
|
||||
|
||||
public $args;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $class
|
||||
* @param $model
|
||||
* @param $args
|
||||
*/
|
||||
public function __construct($class, $model, $args)
|
||||
{
|
||||
$this->class = $class;
|
||||
$this->model = $model;
|
||||
$this->args = $args;
|
||||
}
|
||||
}
|
||||
22
app/Events/Common/ReportFilterShowing.php
Normal file
22
app/Events/Common/ReportFilterShowing.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Common;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class ReportFilterShowing
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $class;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $class
|
||||
*/
|
||||
public function __construct($class)
|
||||
{
|
||||
$this->class = $class;
|
||||
}
|
||||
}
|
||||
30
app/Events/Common/ReportGroupApplying.php
Normal file
30
app/Events/Common/ReportGroupApplying.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Common;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class ReportGroupApplying
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $class;
|
||||
|
||||
public $model;
|
||||
|
||||
public $args;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $class
|
||||
* @param $model
|
||||
* @param $args
|
||||
*/
|
||||
public function __construct($class, $model, $args)
|
||||
{
|
||||
$this->class = $class;
|
||||
$this->model = $model;
|
||||
$this->args = $args;
|
||||
}
|
||||
}
|
||||
22
app/Events/Common/ReportGroupShowing.php
Normal file
22
app/Events/Common/ReportGroupShowing.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Common;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class ReportGroupShowing
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $class;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $class
|
||||
*/
|
||||
public function __construct($class)
|
||||
{
|
||||
$this->class = $class;
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class CompanySwitched
|
||||
{
|
||||
public $company;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $company
|
||||
*/
|
||||
public function __construct($company)
|
||||
{
|
||||
$this->company = $company;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Expense;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class BillCreated
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $bill;
|
||||
|
||||
/**
|
||||
22
app/Events/Expense/BillRecurring.php
Normal file
22
app/Events/Expense/BillRecurring.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Expense;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class BillRecurring
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $bill;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $bill
|
||||
*/
|
||||
public function __construct($bill)
|
||||
{
|
||||
$this->bill = $bill;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Expense;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class BillUpdated
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $bill;
|
||||
|
||||
/**
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Income;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceCreated
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
/**
|
||||
22
app/Events/Income/InvoiceCreating.php
Normal file
22
app/Events/Income/InvoiceCreating.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Income;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceCreating
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Income;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoicePrinting
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
/**
|
||||
22
app/Events/Income/InvoiceRecurring.php
Normal file
22
app/Events/Income/InvoiceRecurring.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Income;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceRecurring
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $invoice
|
||||
*/
|
||||
public function __construct($invoice)
|
||||
{
|
||||
$this->invoice = $invoice;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Income;
|
||||
|
||||
class InvoiceUpdated
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceSent
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
/**
|
||||
26
app/Events/Income/InvoiceUpdated.php
Normal file
26
app/Events/Income/InvoiceUpdated.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Income;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceUpdated
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $invoice
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($invoice, $request)
|
||||
{
|
||||
$this->invoice = $invoice;
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
26
app/Events/Income/InvoiceUpdating.php
Normal file
26
app/Events/Income/InvoiceUpdating.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Income;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceUpdating
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $invoice
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($invoice, $request)
|
||||
{
|
||||
$this->invoice = $invoice;
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
22
app/Events/Income/InvoiceViewed.php
Normal file
22
app/Events/Income/InvoiceViewed.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Income;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class InvoiceViewed
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $invoice
|
||||
*/
|
||||
public function __construct($invoice)
|
||||
{
|
||||
$this->invoice = $invoice;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Income;
|
||||
|
||||
class InvoicePaid
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class PaymentReceived
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $invoice;
|
||||
|
||||
public $request;
|
||||
30
app/Events/Install/UpdateCopied.php
Normal file
30
app/Events/Install/UpdateCopied.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Install;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UpdateCopied
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $old;
|
||||
|
||||
public $new;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $alias
|
||||
* @param $old
|
||||
* @param $new
|
||||
*/
|
||||
public function __construct($alias, $old, $new)
|
||||
{
|
||||
$this->alias = $alias;
|
||||
$this->old = $old;
|
||||
$this->new = $new;
|
||||
}
|
||||
}
|
||||
30
app/Events/Install/UpdateDownloaded.php
Normal file
30
app/Events/Install/UpdateDownloaded.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Install;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UpdateDownloaded
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $old;
|
||||
|
||||
public $new;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $alias
|
||||
* @param $old
|
||||
* @param $new
|
||||
*/
|
||||
public function __construct($alias, $old, $new)
|
||||
{
|
||||
$this->alias = $alias;
|
||||
$this->old = $old;
|
||||
$this->new = $new;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Install;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UpdateFinished
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $old;
|
||||
30
app/Events/Install/UpdateUnzipped.php
Normal file
30
app/Events/Install/UpdateUnzipped.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Install;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UpdateUnzipped
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $old;
|
||||
|
||||
public $new;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $alias
|
||||
* @param $old
|
||||
* @param $new
|
||||
*/
|
||||
public function __construct($alias, $old, $new)
|
||||
{
|
||||
$this->alias = $alias;
|
||||
$this->old = $old;
|
||||
$this->new = $new;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Menu;
|
||||
|
||||
class AdminMenuCreated
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class AdminCreated
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $menu;
|
||||
|
||||
/**
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Menu;
|
||||
|
||||
class CustomerMenuCreated
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class AdminCreating
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $menu;
|
||||
|
||||
/**
|
||||
22
app/Events/Menu/PortalCreated.php
Normal file
22
app/Events/Menu/PortalCreated.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Menu;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class PortalCreated
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $menu;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $menu
|
||||
*/
|
||||
public function __construct($menu)
|
||||
{
|
||||
$this->menu = $menu;
|
||||
}
|
||||
}
|
||||
22
app/Events/Menu/PortalCreating.php
Normal file
22
app/Events/Menu/PortalCreating.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Menu;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class PortalCreating
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $menu;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $menu
|
||||
*/
|
||||
public function __construct($menu)
|
||||
{
|
||||
$this->menu = $menu;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
namespace App\Events\Module;
|
||||
|
||||
class ModuleInstalled
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class Deleted
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $company_id;
|
||||
26
app/Events/Module/Disabled.php
Normal file
26
app/Events/Module/Disabled.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class Disabled
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $company_id;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $alias
|
||||
* @param $company_id
|
||||
*/
|
||||
public function __construct($alias, $company_id)
|
||||
{
|
||||
$this->alias = $alias;
|
||||
$this->company_id = $company_id;
|
||||
}
|
||||
}
|
||||
26
app/Events/Module/Enabled.php
Normal file
26
app/Events/Module/Enabled.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class Enabled
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $company_id;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $alias
|
||||
* @param $company_id
|
||||
*/
|
||||
public function __construct($alias, $company_id)
|
||||
{
|
||||
$this->alias = $alias;
|
||||
$this->company_id = $company_id;
|
||||
}
|
||||
}
|
||||
26
app/Events/Module/Installed.php
Normal file
26
app/Events/Module/Installed.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class Installed
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $alias;
|
||||
|
||||
public $company_id;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $alias
|
||||
* @param $company_id
|
||||
*/
|
||||
public function __construct($alias, $company_id)
|
||||
{
|
||||
$this->alias = $alias;
|
||||
$this->company_id = $company_id;
|
||||
}
|
||||
}
|
||||
22
app/Events/Module/PaymentMethodShowing.php
Normal file
22
app/Events/Module/PaymentMethodShowing.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class PaymentMethodShowing
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $modules;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $modules
|
||||
*/
|
||||
public function __construct($modules)
|
||||
{
|
||||
$this->modules = $modules;
|
||||
}
|
||||
}
|
||||
22
app/Events/Module/SettingShowing.php
Normal file
22
app/Events/Module/SettingShowing.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class SettingShowing
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $modules;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $modules
|
||||
*/
|
||||
public function __construct($modules)
|
||||
{
|
||||
$this->modules = $modules;
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class PaymentGatewayListing
|
||||
{
|
||||
public $gateways;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $gateways
|
||||
*/
|
||||
public function __construct($gateways)
|
||||
{
|
||||
$this->gateways = $gateways;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user