jdavidbakr / mail-tracker

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

Create relationship to the 'users' table #131

Closed JerrelZ closed 3 years ago

JerrelZ commented 3 years ago

Hello Jdavidbark,

First of all, thanks for this great package.

I was wondering, is there a way to create a relationship between the 'users' table and the 'sent_emails' table?

This would be useful to see which user received which emails.

Thanks!

jdavidbakr commented 3 years ago

This would be outside of the scope of this package (not everyone would have this need) but you could easily set up an observer on the SentEmails table and store the link in your own table.