Closed MCKLtech closed 2 years ago
Adding withoutRelations() seems to fix this issue. Perhaps, if relations are never needed, it would be advantageous for the package itself to implement this?
return MagicLink::create(
new LoginAction(**$user->withoutRelations()**, $redirect),
$lifetime,
$maxVisits
)
Thanks for your feedback. In this issue we have 2 issues:
Regarding the first problem, it would be interesting to store only the user's primary key.
I upload this PR #59
We've occasionally been hitting this error, and from the looks of the stack trace, it seems like a huge amount of information is being stored in the action column. It would appear the entire User model is being stuffed in there.
We're using the library in a wrapper function, where the $route could be a named route or a URL: