调整野蛮

This commit is contained in:
2021-04-07 13:18:18 +08:00
parent 96793afeec
commit ae95c5540b
14 changed files with 2170 additions and 808 deletions

View File

@@ -22,7 +22,8 @@ class TestController extends Controller
public function set_article_category()
{
$articles = Article::whereHas('category')
$articles = Article::query()
->whereHas('category')
->chunk(200, function ($articles) {
foreach ($articles as $article) {
ArticleCategory::create([