I'm building a notification system using Laravel's notification system where I store the notification in the database with some relevant data. It looks like this:
The data field is json, so my question is how do I eager load the relations? Because i'm using the Notifiable trait, I don't have access to the model...
Hope, that someone can help me. I know, that I could just store the related data directly on the notification, but I want the flexibility of a relation.