class CommentIndexScope implements Scope (View source)

Scope to calculate each comment's index (ie. how many comments came before it) in the select clause.

Methods

apply(Builder $builder, Model $model)

No description

Details

apply(Builder $builder, Model $model)

No description

Parameters

Builder $builder
Model $model