ApprovalDraftScope
class ApprovalDraftScope implements Scope (View source)
Hides rows waiting for their creation to be approved on models in draft mode.
The mode is read per query, so a model in deferred mode never needs the column.
Methods
void
apply(Builder $builder, Model $model)
Leave out rows waiting for approval, on a model in draft mode.
void
extend(Builder $builder)
Add the withApprovalDrafts() and onlyApprovalDrafts() query methods.
Details
void
apply(Builder $builder, Model $model)
Leave out rows waiting for approval, on a model in draft mode.
void
extend(Builder $builder)
Add the withApprovalDrafts() and onlyApprovalDrafts() query methods.