Skip to content

Commit

Permalink
added event abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 21, 2020
1 parent 090b071 commit c077cc4
Show file tree
Hide file tree
Showing 35 changed files with 80 additions and 136 deletions.
12 changes: 12 additions & 0 deletions app/Abstracts/Event.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace App\Abstracts;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

abstract class Event
{
use Dispatchable, InteractsWithSockets, SerializesModels;
}
6 changes: 2 additions & 4 deletions app/Events/Auth/LandingPageShowing.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Auth;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class LandingPageShowing
class LandingPageShowing extends Event
{
use SerializesModels;

public $user;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Banking/TransactionCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Banking;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class TransactionCreated
class TransactionCreated extends Event
{
use SerializesModels;

public $transaction;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Banking/TransactionCreating.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Banking;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class TransactionCreating
class TransactionCreating extends Event
{
use SerializesModels;

public $request;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Banking/TransactionRecurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Banking;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class TransactionRecurring
class TransactionRecurring extends Event
{
use SerializesModels;

public $transaction;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Common/BulkActionsAdding.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Common;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class BulkActionsAdding
class BulkActionsAdding extends Event
{
use SerializesModels;

public $bulk_action;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Common/CompanyCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Common;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class CompanyCreated
class CompanyCreated extends Event
{
use SerializesModels;

public $company;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Common/CompanyCreating.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Common;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class CompanyCreating
class CompanyCreating extends Event
{
use SerializesModels;

public $request;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Common/CompanySwitched.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Common;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class CompanySwitched
class CompanySwitched extends Event
{
use SerializesModels;

public $company;

public $old_company_id;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Common/CompanyUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Common;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class CompanyUpdated
class CompanyUpdated extends Event
{
use SerializesModels;

public $company;

public $request;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Common/CompanyUpdating.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Common;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class CompanyUpdating
class CompanyUpdating extends Event
{
use SerializesModels;

public $company;

public $request;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Common/GlobalSearched.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Common;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class GlobalSearched
class GlobalSearched extends Event
{
use SerializesModels;

public $search;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Document/PaidAmountCalculated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Document;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class PaidAmountCalculated
class PaidAmountCalculated extends Event
{
use SerializesModels;

public $model;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Document/TransactionsCounted.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Document;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class TransactionsCounted
class TransactionsCounted extends Event
{
use SerializesModels;

public $model;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Install/UpdateCacheCleared.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Install;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class UpdateCacheCleared
class UpdateCacheCleared extends Event
{
use SerializesModels;

public $company_id;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Install/UpdateCopied.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Install;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class UpdateCopied
class UpdateCopied extends Event
{
use SerializesModels;

public $alias;

public $old;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Install/UpdateDownloaded.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Install;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class UpdateDownloaded
class UpdateDownloaded extends Event
{
use SerializesModels;

public $alias;

public $old;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Install/UpdateFinished.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Install;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class UpdateFinished
class UpdateFinished extends Event
{
use SerializesModels;

public $alias;

public $new;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Install/UpdateUnzipped.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Install;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class UpdateUnzipped
class UpdateUnzipped extends Event
{
use SerializesModels;

public $alias;

public $old;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Menu/AdminCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Menu;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class AdminCreated
class AdminCreated extends Event
{
use SerializesModels;

public $menu;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Menu/PortalCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Menu;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class PortalCreated
class PortalCreated extends Event
{
use SerializesModels;

public $menu;

/**
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Module/Copied.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Module;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class Copied
class Copied extends Event
{
use SerializesModels;

public $alias;

public $company_id;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Module/Disabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Module;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class Disabled
class Disabled extends Event
{
use SerializesModels;

public $alias;

public $company_id;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Module/Enabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Module;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class Enabled
class Enabled extends Event
{
use SerializesModels;

public $alias;

public $company_id;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Module/Installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Module;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class Installed
class Installed extends Event
{
use SerializesModels;

public $alias;

public $company_id;
Expand Down
6 changes: 2 additions & 4 deletions app/Events/Module/PaymentMethodShowing.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace App\Events\Module;

use Illuminate\Queue\SerializesModels;
use App\Abstracts\Event;

class PaymentMethodShowing
class PaymentMethodShowing extends Event
{
use SerializesModels;

public $modules;

/**
Expand Down

0 comments on commit c077cc4

Please sign in to comment.