feat: tambah kehadiran peserta per kegiatan via RelationManager
This commit is contained in:
@@ -33,6 +33,7 @@ class Activity extends Model
|
||||
|
||||
public function participants(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'activity_member');
|
||||
return $this->belongsToMany(User::class, 'activity_member')
|
||||
->withPivot('status', 'notes');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user