1. First I generated three tables
< /p>
< /p>
article_tag is associated with the article table and tags table respectively
2. Then I conducted some code testing
$article = \App\Article::destroy(21);
dd($article);
In my mind, when I delete the data in the articles table, the 21 data corresponding to the article_tag table in the third table will also be deleted, but the actual situation is not deleted