title: Where to add server logic using Swagger codegen with Lumen Server Stub
body: <p>I have been looking around but haven't been able to find anything concrete on this so apologies if it has been asked before.</p>
  
  <p>I am using <a href="https://github.com/swagger-api/swagger-codegen" rel="nofollow noreferrer">Swagger codegen</a> to create a ServerStub for my <a href="https://lumen.laravel.com/" rel="nofollow noreferrer">Lumen API project</a> that I am making which is working just fine. My confusion comes from where am I meant to put in my server side logic for connecting to the database, etc.</p>
  
  <p>All files in the <code>middleware</code> and <code>controllers</code> folders, as well as <code>routers.php</code> explicitly state <strong>Do not edit the class manually</strong> in the header comments of each class. So I'm a bit confused where I am supposed to put my logic after the creation of the Server Stub.</p>
  
  <p>Can anybody shed light on where to I put my implementation of the project to use the Server Stub provided? Because the comments tells me not to edit the class, I feel like my implementation is meant to be abstracted away somewhere but I'm just not sure where.</p>
  
  <p>Appreciate any help on the issue. Thanks.</p>