<?php

namespace App\Events;

use App\Models\Attendees;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Artisan;


class NewAttendees
{
    
    use Dispatchable, InteractsWithSockets, SerializesModels;
  
   
    public $student_id;
    
    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($student_id)
    { 
        $this->student_id = $student_id;
    
        
    }



   
    public function broadcastOn()
    {
        return new PrivateChannel('channel-name');
    }
}