title: Testing Laravel route that listens for a webhook
body: <p>Seems like I am missing something here, but I am struggling to implement a test for Laravel that integrates a SendOwl webhook.</p>
  
  <p>Here is the doc I am using:
  <a href="https://help.sendowl.com/help/using-web-hooks" rel="nofollow noreferrer">https://help.sendowl.com/help/using-web-hooks</a></p>
  
  <p>Note I have already added the route to <code>exclude</code> in <code>VerifyCSRFToken</code></p>
  
  <p>Using <code>ngrok</code> (setting the webhook to go to the ngrok url for local dev) I have confirmed that the controller code is working correctly manually, and the webhook works.</p>
  
  <p>What I am stuck on is how to actually implement a test that can automate this. This for example, does not work if you try to assert status, it will be 500.</p>
  
  <pre><code>$response = $this-&gt;call('post', '/listenhere', ['json'=&gt;json_decode($json, true)]);
  </code></pre>