where($column, $slug)->where('legacy_id', '!=', $legacyId)->exists()) { $slug = "{$base}-" . ++$suffix; } return $slug; } }