Skip to content

Commit

Permalink
Don't lazy load email relation on SentEmailUrlClicked
Browse files Browse the repository at this point in the history
  • Loading branch information
jonb-sf committed May 9, 2022
1 parent c9a3379 commit e1bc562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public function getShowEmail($id)
*/
public function getUrlDetail($id)
{
$detalle = SentEmailUrlClicked::where('sent_email_id', $id)->get();
$detalle = SentEmailUrlClicked::where('sent_email_id', $id)
->with('email')
->get();
if (!$detalle) {
return back();
}
Expand Down

0 comments on commit e1bc562

Please sign in to comment.