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 7
7
``` php
8
8
public function getActive(): Collection
9
9
{
10
- return $this->where('verified', 1)->whereNotNull ('deleted_at')->get();
10
+ return $this->where('verified', 1)->whereNull ('deleted_at')->get();
11
11
}
12
12
13
13
public function getArticles(): Collection
14
14
{
15
15
return $this->whereHas('user', function ($query) {
16
- $query->where('verified', 1)->whereNotNull ('deleted_at');
16
+ $query->where('verified', 1)->whereNull ('deleted_at');
17
17
})->get();
18
18
}
19
19
24
24
``` php
25
25
public function scopeActive(Builder $query): Builder
26
26
{
27
- return $query->where('verified', 1)->whereNotNull ('deleted_at');
27
+ return $query->where('verified', 1)->whereNull ('deleted_at');
28
28
}
29
29
30
30
public function getActive(): Collection
You can’t perform that action at this time.
0 commit comments