'integer', 'is_active' => 'boolean', ]; public function artworks(): BelongsToMany { return $this->belongsToMany(Artwork::class, 'artwork_tag', 'tag_id', 'artwork_id') ->withPivot(['source', 'confidence']); } public function getRouteKeyName(): string { return 'slug'; } }