Skip to content

Commit

Permalink
Merge pull request #25 from dcblogdev/eager-loading
Browse files Browse the repository at this point in the history
added eager loading
  • Loading branch information
dcblogdev authored Sep 22, 2024
2 parents 5b144e1 + e94ccef commit e03a91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/SentEmailsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SentEmailsController
{
public function index(Request $request): View
{
$emails = SentEmail::orderby('id', 'desc')
$emails = SentEmail::with('attachments')->orderby('id', 'desc')
->applyFilters($request)
->paginate(config('sentemails.perPage'));

Expand Down

0 comments on commit e03a91f

Please sign in to comment.