Skip to content

Commit c997111

Browse files
authored
Merge pull request #14 from coderflexx/category-refactor
Refactoring
2 parents 32c92e3 + ce4fefe commit c997111

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Concerns/HasVisibility.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait HasVisibility
1414
*/
1515
public function scopeVisible(Builder $builder)
1616
{
17-
return $builder->where('is_visible', Visibility::VISIBLE->value);
17+
return $builder->where($this->qualifyColumn('is_visible'), Visibility::VISIBLE->value);
1818
}
1919

2020
/**
@@ -24,6 +24,6 @@ public function scopeVisible(Builder $builder)
2424
*/
2525
public function scopeHidden(Builder $builder)
2626
{
27-
return $builder->where('is_visible', Visibility::HIDDEN->value);
27+
return $builder->where($this->qualifyColumn('is_visible'), Visibility::HIDDEN->value);
2828
}
2929
}

0 commit comments

Comments
 (0)