| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace App\Events;
- use App\UserDutyCheck;
- use Illuminate\Broadcasting\Channel;
- use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
- use Illuminate\Queue\SerializesModels;
- class GuardAuditEvent implements ShouldBroadcastNow
- {
- use SerializesModels;
- public $userDutyCheck;
- /**
- * Create a new event instance.
- *
- * @return void
- */
- public function __construct(UserDutyCheck $userDutyCheck)
- {
- $this->userDutyCheck=$userDutyCheck;
- }
- /**
- * Get the channels the event should broadcast on.
- *
- * @return \Illuminate\Broadcasting\Channel|array
- */
- public function broadcastOn()
- {
- return new Channel('userDutyCheck');
- }
- }
|