title: Unit test Laravel middleware
body: <p>I am trying to write unit tests for my middleware in Laravel. Does anyone know a tutorial, or have an example of this ?</p>
  
  <p>I have been writing a lot of code, but there must be a better way to test the handle method.</p>