So, I am working on my first real Laravel project. I am working on rewriting a procedural based application I wrote previously into Laravel. The app is what I would call "backend heavy" in that a lot of what it does happens automatically behind the scenes. The app interacts with remote devices via a SSL socket connection on the backend but the socket won't be used directly from the frontend at all. At most, an event that is tripped by the front end may trigger an even that interacts with the socket.
With that said, where would the best place to be to put the actual connection code/logic into the app? I started off putting it into a model but that seems like the wrong place to put the class. Should I break it up into single function classes? Where is the best/most logical place?