I believe this is what you're looking for: https://github.com/ARCANEDEV/LaravelNotes
Also a quick tip, you can search Laravel packages on: https://packalyst.com/ ;)
I'm wondering if anyone has any recommendations for a package that allows notes to be added to any model in an application. I'm guessing what I need is a polymorphic relationship, that can provide many child records for any other model, and probably a trait to add it to those models. It should be easy enough to write, but I am looking around to see if such a thing already exists so I can see it working practically.
Whether it just deals with the back end relationships, or has views and permissions for dealing with the front end too, I'm not too bothered about, just looking for an example.
Edit: actually, I think I need many-to-many polymorphic relationships for the notes, since a single note could be linked to multiple models that it is related to. I'm just going to go ahead and try that out and see how it looks and works.
Trying it out, I think I need the inverse relationship (notes to the models) to be dynamic, or defined by configuration rather than code. I think Oktober CMS manages to do something like that.
I believe this is what you're looking for: https://github.com/ARCANEDEV/LaravelNotes
Also a quick tip, you can search Laravel packages on: https://packalyst.com/ ;)
Please or to participate in this conversation.