File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 77``` php
88public function getActive(): Collection
99{
10- return $this->where('verified', 1)->whereNotNull ('deleted_at')->get();
10+ return $this->where('verified', 1)->whereNull ('deleted_at')->get();
1111}
1212
1313public function getArticles(): Collection
1414{
1515 return $this->whereHas('user', function ($query) {
16- $query->where('verified', 1)->whereNotNull ('deleted_at');
16+ $query->where('verified', 1)->whereNull ('deleted_at');
1717 })->get();
1818}
1919
2424``` php
2525public function scopeActive(Builder $query): Builder
2626{
27- return $query->where('verified', 1)->whereNotNull ('deleted_at');
27+ return $query->where('verified', 1)->whereNull ('deleted_at');
2828}
2929
3030public function getActive(): Collection
You can’t perform that action at this time.
0 commit comments