From 77fed6c6e794a603cf477f051a706f93b5c2ba63 Mon Sep 17 00:00:00 2001 From: Stephen Jude Date: Wed, 1 Jul 2020 23:07:10 +0100 Subject: [PATCH] fix config error --- src/Traits/DefaultOrderBy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/DefaultOrderBy.php b/src/Traits/DefaultOrderBy.php index d47ff32..27582b8 100644 --- a/src/Traits/DefaultOrderBy.php +++ b/src/Traits/DefaultOrderBy.php @@ -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);