PendingScope
class PendingScope implements Scope (View source)
Properties
protected string[] | $extensions | All of the extensions to be added to the builder. |
Methods
void
apply(Builder $builder, Model $model)
Apply the scope to a given Eloquent query builder.
void
extend(Builder $builder)
Extend the query builder with the needed functions.
void
addWithPending(Builder $builder)
Add the with-pending extension to the builder.
void
addWithoutPending(Builder $builder)
Add the without-pending extension to the builder.
void
addOnlyPending(Builder $builder)
Add the only-pending extension to the builder.
Details
void
apply(Builder $builder, Model $model)
Apply the scope to a given Eloquent query builder.
void
extend(Builder $builder)
Extend the query builder with the needed functions.
protected void
addWithPending(Builder $builder)
Add the with-pending extension to the builder.
protected void
addWithoutPending(Builder $builder)
Add the without-pending extension to the builder.
protected void
addOnlyPending(Builder $builder)
Add the only-pending extension to the builder.