PMCORE-1337

This commit is contained in:
Paula Quispe
2021-03-24 09:31:35 -04:00
parent de06c121c8
commit 70086becdc
7 changed files with 317 additions and 86 deletions

View File

@@ -29,5 +29,18 @@ class Groupwf extends Model
{
return $this->belongsTo(GroupUser::class, 'GRP_ID', 'GRP_ID');
}
/**
* Scope for query to get the group uid
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @param string $uid
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function scopeGroup($query, $uid)
{
return $query->where('GRP_UID', $uid);
}
}