From 4aca27c940e3b7b3fa9302751a7001a56efae20e Mon Sep 17 00:00:00 2001 From: saparatayev Date: Wed, 27 Apr 2022 16:09:24 +0500 Subject: [PATCH] turn of searchable trait --- app/Models/Export.php | 22 +++++++++++----------- app/Models/Import.php | 20 ++++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/app/Models/Export.php b/app/Models/Export.php index 6100efc..2e62704 100644 --- a/app/Models/Export.php +++ b/app/Models/Export.php @@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; class Export extends Model { use HasFactory; - use Searchable; + // use Searchable; protected $guarded = ['id']; protected $casts = [ @@ -20,16 +20,16 @@ class Export extends Model protected $appends = ['total']; protected $with = ['category']; - public function toSearchableArray() - { - return [ - 'id' => $this->id, - 'title' => $this->title, - 'category' => $this->category_id, - 'group' => $this->group_id, - 'locale' => $this->locale, - ]; - } + // public function toSearchableArray() + // { + // return [ + // 'id' => $this->id, + // 'title' => $this->title, + // 'category' => $this->category_id, + // 'group' => $this->group_id, + // 'locale' => $this->locale, + // ]; + // } public function scopeLines($query) { diff --git a/app/Models/Import.php b/app/Models/Import.php index 16bc19b..54126c4 100644 --- a/app/Models/Import.php +++ b/app/Models/Import.php @@ -9,22 +9,22 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; class Import extends Model { use HasFactory; - use Searchable; + // use Searchable; protected $guarded = ['id']; protected $casts = [ 'registered_at' => 'date:d.m.Y' ]; - public function toSearchableArray() - { - return [ - 'id' => $this->id, - 'title' => $this->title, - 'group' => $this->group_id, - 'locale' => $this->locale, - ]; - } + // public function toSearchableArray() + // { + // return [ + // 'id' => $this->id, + // 'title' => $this->title, + // 'group' => $this->group_id, + // 'locale' => $this->locale, + // ]; + // } public static function countries($ids = []) {