title: laravel nested db transaction doesnt commit
body: <p>I have a nested transaction that uses to commit few different tables. I only want to commit one table in the nested and the other two tables in the outer commit.</p>
  
  <pre><code>beginTransaction();
  
  error_message.=function A();
  error_message.=function B();
  
  if (empty error_message){
      commit(); //commit table B and C
  } else {
      rollback();
  }
  </code></pre>
  
  <pre><code>function A(){
      beginTransaction();
      update table A //wants to commit table A immediately
      commit();
      //do some stuff
      update table B
      if(error) {
          return error_message
      } else {
          return null
      }
  }
  
  function B(){
      beginTransaction();
      update table A //wants to commit table A immediately
      commit();
      //do some stuff
      update table C
      if(error) {
          return error_message
      } else {
          return null
      }
  }
  </code></pre>