belongsToMany(Title::class); } public function insertOrRetrieve( Collection|array $tags, ?string $type = 'custom', ?int $userId = null, ): Collection { // genre table will not have type or user_id columns return parent::insertOrRetrieve($tags, null, null); } public function getByNames( Collection $names, ?string $type = null, ?int $userId = null, ): Collection { return parent::getByNames($names, null, null); } }