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.

Parameters

Builder $builder
Model $model

Return Value

void

void extend(Builder $builder)

Extend the query builder with the needed functions.

Parameters

Builder $builder

Return Value

void

protected void addWithPending(Builder $builder)

Add the with-pending extension to the builder.

Parameters

Builder $builder

Return Value

void

protected void addWithoutPending(Builder $builder)

Add the without-pending extension to the builder.

Parameters

Builder $builder

Return Value

void

protected void addOnlyPending(Builder $builder)

Add the only-pending extension to the builder.

Parameters

Builder $builder

Return Value

void