akaunting 3.0 (the last dance)
This commit is contained in:
20
app/Events/Auth/InvitationCreated.php
Normal file
20
app/Events/Auth/InvitationCreated.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class InvitationCreated extends Event
|
||||
{
|
||||
public $invitation;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $invitation
|
||||
*/
|
||||
public function __construct($invitation)
|
||||
{
|
||||
$this->invitation = $invitation;
|
||||
}
|
||||
}
|
||||
24
app/Events/Auth/RoleCreated.php
Normal file
24
app/Events/Auth/RoleCreated.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class RoleCreated extends Event
|
||||
{
|
||||
public $role;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $role
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($role, $request)
|
||||
{
|
||||
$this->role = $role;
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
22
app/Events/Auth/RoleCreating.php
Normal file
22
app/Events/Auth/RoleCreating.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class RoleCreating
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
20
app/Events/Auth/RoleDeleted.php
Normal file
20
app/Events/Auth/RoleDeleted.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class RoleDeleted extends Event
|
||||
{
|
||||
public $role;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $role
|
||||
*/
|
||||
public function __construct($role)
|
||||
{
|
||||
$this->role = $role;
|
||||
}
|
||||
}
|
||||
20
app/Events/Auth/RoleDeleting.php
Normal file
20
app/Events/Auth/RoleDeleting.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class RoleDeleting extends Event
|
||||
{
|
||||
public $role;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $role
|
||||
*/
|
||||
public function __construct($role)
|
||||
{
|
||||
$this->role = $role;
|
||||
}
|
||||
}
|
||||
24
app/Events/Auth/RoleUpdated.php
Normal file
24
app/Events/Auth/RoleUpdated.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class RoleUpdated extends Event
|
||||
{
|
||||
public $role;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $role
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($role, $request)
|
||||
{
|
||||
$this->role = $role;
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
24
app/Events/Auth/RoleUpdating.php
Normal file
24
app/Events/Auth/RoleUpdating.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class RoleUpdating extends Event
|
||||
{
|
||||
public $role;
|
||||
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $role
|
||||
* @param $request
|
||||
*/
|
||||
public function __construct($role, $request)
|
||||
{
|
||||
$this->role = $role;
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
20
app/Events/Auth/UserDeleted.php
Normal file
20
app/Events/Auth/UserDeleted.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class UserDeleted extends Event
|
||||
{
|
||||
public $user;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $user
|
||||
*/
|
||||
public function __construct($user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
20
app/Events/Auth/UserDeleting.php
Normal file
20
app/Events/Auth/UserDeleting.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Auth;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class UserDeleting extends Event
|
||||
{
|
||||
public $user;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $user
|
||||
*/
|
||||
public function __construct($user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Events\Banking;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
use App\Models\Banking\Transaction;
|
||||
|
||||
class TransactionCreated extends Event
|
||||
{
|
||||
@@ -13,7 +14,7 @@ class TransactionCreated extends Event
|
||||
*
|
||||
* @param $transaction
|
||||
*/
|
||||
public function __construct($transaction)
|
||||
public function __construct(Transaction $transaction)
|
||||
{
|
||||
$this->transaction = $transaction;
|
||||
}
|
||||
|
||||
@@ -3,9 +3,12 @@
|
||||
namespace App\Events\Document;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
use App\Traits\Transactions;
|
||||
|
||||
class PaymentReceived extends Event
|
||||
{
|
||||
use Transactions;
|
||||
|
||||
public $document;
|
||||
|
||||
public $request;
|
||||
@@ -18,6 +21,11 @@ class PaymentReceived extends Event
|
||||
public function __construct($document, $request = [])
|
||||
{
|
||||
$this->document = $document;
|
||||
|
||||
if (empty($request['number'])) {
|
||||
$request['number'] = $this->getNextTransactionNumber();
|
||||
}
|
||||
|
||||
$this->request = $request;
|
||||
}
|
||||
}
|
||||
|
||||
20
app/Events/Menu/NewwCreated.php
Normal file
20
app/Events/Menu/NewwCreated.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Menu;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class NewwCreated extends Event
|
||||
{
|
||||
public $menu;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $menu
|
||||
*/
|
||||
public function __construct($menu)
|
||||
{
|
||||
$this->menu = $menu;
|
||||
}
|
||||
}
|
||||
20
app/Events/Menu/NotificationsCreated.php
Normal file
20
app/Events/Menu/NotificationsCreated.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Menu;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class NotificationsCreated extends Event
|
||||
{
|
||||
public $notifications;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $notifications
|
||||
*/
|
||||
public function __construct($notifications)
|
||||
{
|
||||
$this->notifications = $notifications;
|
||||
}
|
||||
}
|
||||
20
app/Events/Menu/ProfileCreated.php
Normal file
20
app/Events/Menu/ProfileCreated.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Menu;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class ProfileCreated extends Event
|
||||
{
|
||||
public $menu;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $menu
|
||||
*/
|
||||
public function __construct($menu)
|
||||
{
|
||||
$this->menu = $menu;
|
||||
}
|
||||
}
|
||||
20
app/Events/Menu/SettingsCreated.php
Normal file
20
app/Events/Menu/SettingsCreated.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Menu;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class SettingsCreated extends Event
|
||||
{
|
||||
public $menu;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $menu
|
||||
*/
|
||||
public function __construct($menu)
|
||||
{
|
||||
$this->menu = $menu;
|
||||
}
|
||||
}
|
||||
24
app/Events/Module/Disabling.php
Normal file
24
app/Events/Module/Disabling.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class Disabling extends Event
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class SettingShowing extends Event
|
||||
{
|
||||
public $modules;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $modules
|
||||
*/
|
||||
public function __construct($modules)
|
||||
{
|
||||
$this->modules = $modules;
|
||||
}
|
||||
}
|
||||
24
app/Events/Module/Uninstalling.php
Normal file
24
app/Events/Module/Uninstalling.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Module;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class Uninstalling extends Event
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user