Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 3 |
| AttendanceDetailCreatedOrUpdated | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 3 |
| __construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| broadcastOn | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App\Events; | |
| use Illuminate\Broadcasting\Channel; | |
| use Illuminate\Queue\SerializesModels; | |
| use Illuminate\Broadcasting\PrivateChannel; | |
| use Illuminate\Broadcasting\PresenceChannel; | |
| use Illuminate\Foundation\Events\Dispatchable; | |
| use Illuminate\Broadcasting\InteractsWithSockets; | |
| use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
| class AttendanceDetailCreatedOrUpdated | |
| { | |
| use Dispatchable, InteractsWithSockets, SerializesModels; | |
| /** | |
| * Create a new event instance. | |
| * | |
| * @return void | |
| */ | |
| public $attendanceDetail; | |
| public function __construct($attendanceDetail) | |
| { | |
| $this->attendanceDetail = $attendanceDetail; | |
| } | |
| /** | |
| * Get the channels the event should broadcast on. | |
| * | |
| * @return \Illuminate\Broadcasting\Channel|array | |
| */ | |
| public function broadcastOn() | |
| { | |
| return new PrivateChannel('channel-name'); | |
| } | |
| } |