class RegisteredTypesScope implements ScopeInterface

Properties

protected int $whereIndex <p>The index at which we added a where clause.</p>
protected int $bindingIndex <p>The index at which we added where bindings.</p>
protected int $bindingCount <p>The number of where bindings we added.</p>

Methods

void
apply(Builder $builder, Model $post)

<p>Apply the scope to a given Eloquent query builder.</p>

void
remove(Builder $builder, Model $post)

<p>Remove the scope from the given Eloquent query builder.</p>

Details

void apply(Builder $builder, Model $post)

<p>Apply the scope to a given Eloquent query builder.</p>

Parameters

Builder $builder
Model $post

Return Value

void

void remove(Builder $builder, Model $post)

<p>Remove the scope from the given Eloquent query builder.</p>

Parameters

Builder $builder
Model $post

Return Value

void