Skip to content

Commit

Permalink
update global scope name
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Jul 12, 2020
1 parent 3c0e553 commit 6fd8bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/DefaultOrderBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected static function boot()
? Self::$orderByColumnDirection
: config('default-model-sorting.order_by');

static::addGlobalScope('order', function (Builder $builder) use ($column, $direction) {
static::addGlobalScope('default_order_by', function (Builder $builder) use ($column, $direction) {
$builder->orderBy($column, $direction);
});
}
Expand Down

0 comments on commit 6fd8bee

Please sign in to comment.