appends, ['id']); } public function getHidden() { return array_merge($this->hidden, ['_id']); } public function setIdAttribute($value) { $this->attributes['_id'] = $value; } public function scopeWithoutTrash($q) { return $q->where(fn ($q) => $q->where('deleted_at', null)->orWhere('deleted_at', '')); } }