title: Delete record from one-to-many relationship
body: <p>I have 3 tables:</p>
  <p><strong>users</strong></p>
  <pre><code>id
  role
  email
  typable_id
  typable_type
  </code></pre>
  <p><strong>buyers</strong></p>
  <pre><code>id
  name
  address
  avatar
  email
  residential_id
  </code></pre>
  <p><strong>residentials</strong></p>
  <pre><code>id
  name
  city 
  state
  </code></pre>
  <p>And here is my model that shows the relationship</p>
  <p><strong>User.php</strong></p>
  <pre><code>public function typable()
  {
    return $this-&gt;morphTo();
  }
  </code></pre>
  <p><strong>Buyer.php</strong></p>
  <pre><code>public function residential()
  {
    return $this-&gt;belongsTo(Residential::class);
  }
  
  public function user()
  {
    return $this-&gt;morphMany(User::class, 'typable');
  }
  </code></pre>
  <p><strong>Residential.php</strong></p>
  <pre><code>public function buyer()
  {
    return $this-&gt;hasMany(Buyer::class);
  }
  </code></pre>
  <p>If I want to delete the residential, all buyers from that residential need to be deleted. Same as users need to be deleted too when the buyers is deleted. How can I do that? This is what insides my Residential Controller for destroy function.</p>
  <p><strong>ResidentialController</strong></p>
  <pre><code>public function destroy(Request $request) 
      {
          $residentials = Residential::find($request-&gt;input('id'));
          $residentials-&gt;id = $request-&gt;input('id');
          $residentials-&gt;name = $request-&gt;input('name');
          $residentials-&gt;delete($residentials);
  
          return response()-&gt;json($residentials);
      }
  </code></pre>
  <p>I have tried to put this code to delete the buyers (for users not yet) inside <strong>destroy()</strong> but nothing is changed for the buyers to be deleted.
  <code>$buyers = Buyer::where('residential_id','=',$request-&gt;residential_id)-&gt;first();</code> <code>$buyers-&gt;delete($buyers);</code></p>
  <p>While this is the code that I managed to do if I want to delete the buyers, the users are deleted too.</p>
  <p><strong>BuyerController</strong></p>
  <pre><code>public function destroy(Request $request)
  {
    $users = User::where('email', '=', $request-&gt;email)-&gt;first();
    $buyers = Buyer::find($request-&gt;input('id'));
    $buyers-&gt;id = $request-&gt;input('id');
    $buyers-&gt;name = $request-&gt;input('name');
    $buyers-&gt;delete($buyers);
    $users-&gt;delete($users);
  
    return response()-&gt;json($buyers);
  }
  </code></pre>
  <p>I hope there is someone to help and teach me the correct way.</p>