Have you found a solution to this? I'm not sure if I'm following you but have you try doing "cascade"?
e.g. This will delete the record on the pivot table if you delete the item on "tags" table. $table->foreign('tag_id') ->references('id')->on('tags') ->onDelete('cascade');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community