title: Laravel: How to delete rows from multiple table with same id with only 1 query?
body: <p>I have this code to delete data from multiple tables in one go:</p>
  
  <pre><code>DB::table('tb_stikes_register_school')-&gt;where('register_id', $_POST['id'])-&gt;delete();
              DB::table('tb_stikes_register_guardian')-&gt;where('register_id', $_POST['id'])-&gt;delete();
              DB::table('tb_stikes_register_student')-&gt;where('register_id', $_POST['id'])-&gt;delete();
  </code></pre>
  
  <p>I'm trying to shorten this into 1 query only, register_id from <code>guardian</code> and <code>school</code> tables is the foreign key of <code>student</code> table. I've been trying to use join but only <code>student</code> table record is deleted. Is there any workaround this?</p>