Skip to content

Commit

Permalink
fix config error
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Jul 1, 2020
1 parent 67e87af commit 77fed6c
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 @@ -14,7 +14,7 @@ protected static function boot()

$direction = isset(Self::$orderByColumnDirection)
? Self::$orderByColumnDirection
: config('order_by');
: config('default-model-sorting.order_by');

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

0 comments on commit 77fed6c

Please sign in to comment.