I am using Laravel 5.2.
I have 3 tables: book, user and book_user (the pivot table).
I want to use soft deletes on my pivot table. When I attach a book to a user, the relationship is inserted into the book_user table. However when I detach this relationship, the record in the pivot table is deleted even though I added use SoftDeletes to the pivot table model.
How can I implement soft deletes for the records in my pivot table when I attach or detach?