Use the updateExistingPivot() method to make changes to pivot columns on existing records

Use the updateExistingPivot() method to make changes to pivot columns on existing records

💡If you have a many-to-many relationship with a pivot table and extra columns, you can use the updateExistingPivot to update the extra column's value.

In this example, I need to update the status of a given subscriber:

We're writing a book, you can get it for free here.