I have a bunch of functions in my controller that help me access Neo4j through the Neography::Rest function but I want to move it into its own class.
Where can I put it so I can call Neo.blabla inside any controller like a Model? I tried to put it with the Models but it does not find the class. There should be an easy solution that loads one instance of that class so in my application I can access the Rest connection from any controller. I am quite sure putting the @neo inside the controller is not how one is supposed to do it.
My neo4j graph is too complicated to use the Neo4j ActiveNode stuff. It really wouldn't help me. I just need the Neography REST access and access my own wrapper on top of that.