[WIP] Fix Medicine
This commit is contained in:
@@ -215,6 +215,11 @@ class CorporateBenefit extends Model
|
||||
return $this->belongsTo(Plan::class);
|
||||
}
|
||||
|
||||
public function scopeActive($query)
|
||||
{
|
||||
$query->where('active', 1);
|
||||
}
|
||||
|
||||
public function scopeFilter($query, array $filters)
|
||||
{
|
||||
$query->when($filters['search'] ?? false, function ($query, $search) {
|
||||
|
||||
Reference in New Issue
Block a user