'array', // Kolom ini akan disimpan sebagai JSON 'sent_at' => 'datetime', 'is_active' => 'boolean' ]; /** * Relationship with Room (Many-to-Many) */ public function rooms() { return $this->belongsToMany(Room::class, 'announcement_room', 'announcement_id', 'room_name'); } }