title: Rollback database changes after unit test Lumen
body: <p>We've used Lumen for building API and also created some test cases.</p>
  
  <p>All test cases working fine but We want to revert all the changes that done by test cases.</p>
  
  <p>Is it any way to revert all changes in Lumen.</p>
  
  <p>Test Case Example:</p>
  
  <pre><code>class PostTest extends TestCase
  {
      /**
       * Test create post
       *
       * @return void
       */
      public function testBasicExample()
      {
          $this-&gt;post('/post', ['post_name' =&gt; 'New Post'])
               -&gt;seeJsonEquals([
                  'created' =&gt; true,
               ]);
      }
  }
  </code></pre>
  
  <p>Note: We don't want to truncate all data, just revert test case changes.</p>
  
  <p>Thanks!</p>