Advertisement
zalazdi

CompanyActionLog.php

Mar 25th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Events;
  4.  
  5. use App\Events\Event;
  6. use Illuminate\Queue\SerializesModels;
  7. use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  8.  
  9. class CompanyActionlog extends Event
  10. {
  11.     use SerializesModels;
  12.  
  13.     /**
  14.      * Create a new event instance.
  15.      *
  16.      * @param $name
  17.      * @param array $entities, Have to be empty or contains all keys: actual, before, related
  18.      * @param null $note
  19.      */
  20.     public function __construct($name, $entities = [], $note = null)
  21.     {
  22.         $this->assignActionlog($name, $entities, $note);
  23.     }
  24.  
  25.     /**
  26.      * Get the channels the event should be broadcast on.
  27.      *
  28.      * @return array
  29.      */
  30.     public function broadcastOn()
  31.     {
  32.         return [];
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement