title: Delete parent table data when deleted all related child rows form child table in laravel
body: <p>This is my parent table:-</p>
  
  <pre><code>id | name    | created_at
   1 | mobile  |  NULL
   2 | Laptop  |  Null 
  </code></pre>
  
  <p>And This is Child table:-</p>
  
  <pre><code>id | name  |parent_id| amount | created_at
   1 | Nokia |    1    | 2500   | NULL
   2 |Samsung|    1    | 3500   | Null
   3 |Sony   |    1    | 4000   | Null 
  </code></pre>
  
  <p>When I am deleting all child data of related by parent Mobile data using by foreign key then I want to delete also Mobile Data in a parent table.</p>