Skip to content

Commit ccfbc55

Browse files
committed
feat: add scope for retrieving root translations
1 parent c34332e commit ccfbc55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DbTranslatable/IsDbTranslatable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ public function isRootTranslation(): bool
249249
return empty($this->translatable_parent_id);
250250
}
251251

252-
public function scopeRootTranslations(Builder $builder): Builder
252+
public function scopeRootTranslations(Builder $query): Builder
253253
{
254-
return $builder->whereNull('translatable_parent_id');
254+
return $query->whereNull('translatable_parent_id');
255255
}
256256

257257
/**

0 commit comments

Comments
 (0)