Replies: 2 comments
-
hey @ronlinet, thanks for the discussion thread. I see a lot of value in the junction table. Since the thread can query all of the messages with the same id and We originally had foreign keys on the tables, but it introduced a lot of issues in some applications. Since you can override any of the models in the config, and the models could have different table names, this introduced conflicts. We decided to drop FK handling in the package directly and leave that up to the individual application to add or not. |
Beta Was this translation helpful? Give feedback.
-
Hi @cmgmyr Thank you for considering the use case. After reviewing the things I do agree that a junction may be in this case an overkill. There is still an advantage of Sure things do work well in both cases :) . Feel free to close the issue. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
-
I went through all available messenger solutions in Laravel and I think that this project is the best pluggable solution out there.
I am reusing your package and while querying the DB I have noticed missing foreign keys and junction table between the messages and threads.
Of course the message querying does the trick without associative entities but the relational bible says otherwise.
I am attaching the junctions table schema as well as the code.
Thank you for your open source contribution.
Regards.
Beta Was this translation helpful? Give feedback.
All reactions