Skip to content

Commit 1f9613c

Browse files
committed
added eager loading
1 parent 1bfef78 commit 1f9613c

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)