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 = []) {