---
tags: [attachments, repository]
module: Attachments
---

# GeneralAttachmentsRepository

## Connections
[[_Attachments]] · [[[Model]GeneralAttachment]] · [[[Service]AttachmentServices]]

## Source
```
Modules/Attachments/Repositories/GeneralAttachmentsRepository.php
```

## Extends
`App\Repositories\BaseRepository`

## Key Methods

| Method | Description |
|---|---|
| `getAttachmentsByFilters(array $filters)` | Filters by `customer_id` and/or `supplier_id`; only returns `is_attached = false` records; eager-loads `addedBy` relation |

## Used By
- `CreatingNewGeneralAttachmentService` — create
- `DeletingAttachmentService` — delete
- `RetrievingNotAttachedFilesService` — list
- `AttachingFileToModelService` — update `is_attached`
