title: Transaction with Eloquent Laravel 5
body: <p>I am using MyISAM for MySQL and I want to use transaction here is my code:</p>
  <pre class="lang-php prettyprint-override"><code>DB::transaction(function () {
      $project = Project::find($id);
      $project-&gt;users()-&gt;detach();
      $project-&gt;delete();
  });
  </code></pre>
  <p>This code execute succesfuly but I am not sure that transaction works... How can I test it?</p>