This commit is contained in:
Andrea Adamczyk
2019-06-28 15:20:51 -04:00
parent 24c851f34c
commit 43cc784ede
6 changed files with 283 additions and 0 deletions

View File

@@ -61,4 +61,16 @@ class Dynaform extends Model
->where('DYNAFORM.DYN_UID', '!=', $dynUid)
->get();
}
/**
* Scope a query to filter an specific process
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @param string $columns
* @return \Illuminate\Database\Eloquent\Builder
*/
public function scopeProcess($query, string $proUID)
{
return $query->where('PRO_UID', $proUID);
}
}