From c553602ab8e94bd63e59f46e798b6935119694d5 Mon Sep 17 00:00:00 2001 From: Bayu Hendra Winata Date: Mon, 20 Jan 2020 07:36:48 +0700 Subject: [PATCH] refactor --- composer.json | 2 +- src/Models/Lookup.php | 4 ++-- src/ServiceProvider.php | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 6504a47..258759c 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "php": ">=7.2", "illuminate/support": "^6.0", "laravolt/suitable": "^3.6", - "laravolt/support": "^2.0" + "laravolt/support": "^2.0.6" }, "autoload": { "psr-4": { diff --git a/src/Models/Lookup.php b/src/Models/Lookup.php index e3c3247..2424947 100644 --- a/src/Models/Lookup.php +++ b/src/Models/Lookup.php @@ -6,8 +6,8 @@ use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; -use Laravolt\Suitable\AutoFilter; -use Laravolt\Suitable\AutoSort; +use Laravolt\Support\Traits\AutoFilter; +use Laravolt\Support\Traits\AutoSort; use Spatie\SchemalessAttributes\SchemalessAttributes; class Lookup extends Model diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 0cda5bd..325870a 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -9,7 +9,10 @@ class ServiceProvider extends BaseServiceProvider { - protected $name = 'lookup'; + public function getIdentifier() + { + return 'lookup'; + } public function boot() {