belongsTo(TagGroup::class, 'group_id', 'id'); } public function customers() { return $this->belongsToMany(Customer::class, 'customer_tag', 'tag_id', 'customer_id'); } }