jdavidbakr / mail-tracker

Package for Laravel to inject tracking code into outgoing emails.
MIT License
567 stars 129 forks source link

Lazy Loading Issue #180

Closed usernotnull closed 2 years ago

usernotnull commented 2 years ago

I usually disable lazy loading to spot performance bottlenecks, ie:

Model::preventLazyLoading();

I'm checking your awesome library :) In the URL report, I'm getting the following error:

Attempted to lazy load [email] on model [jdavidbakr\MailTracker\Model\SentEmailUrlClicked] but lazy loading is disabled.

Worth noting that this is happening when, in the email, more than 1 unique link is clicked (2 or more links-clicked rows will cause the error).

You can view the full report here to see the stack trace: https://flareapp.io/share/NPL9npQ7#F81

(see resources/views/vendor/emailTrakingViews/url_detail.blade.php:17)

jdavidbakr commented 2 years ago

Fixed in 6.0.5