AP
public function scopePopular($query)
{
return $query->where('votes', '>', 100);
}
$users = App\Models\User::popular()->get()
Size: a a a
AP
public function scopePopular($query)
{
return $query->where('votes', '>', 100);
}
AB
P
AP
AP
AP
AB
P
P
AP
AP
public function scopeActive($query)
{
return $query->where('status', 1);
}
AB
AP
public function scopePopular($query)
{
return $query->where('votes', '>', 100);
}
P
AB
P