use HasFactory;
+ public function channels() {
+ return $this->belongsToMany(Channel::class);
+ }
+
public function event() {
return $this->belongsTo(Event::class);
}
protected $casts = [
'confirmed' => 'boolean',
+ 'start' => 'datetime',
+ ];
+
+ protected $hidden = [
+ 'created_at',
+ 'ext_id',
+ 'updated_at',
];
}