Skip to content

Commit e03a91f

Browse files
authored
Merge pull request #25 from dcblogdev/eager-loading
added eager loading
2 parents 5b144e1 + e94ccef commit e03a91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/SentEmailsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class SentEmailsController
1212
{
1313
public function index(Request $request): View
1414
{
15-
$emails = SentEmail::orderby('id', 'desc')
15+
$emails = SentEmail::with('attachments')->orderby('id', 'desc')
1616
->applyFilters($request)
1717
->paginate(config('sentemails.perPage'));
1818

0 commit comments

Comments
 (0)