<?php

use Illuminate\Database\Seeder;

class ChangeEditorSeed extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $articles = \App\Article::all();
        foreach ($articles as $article) {
            $article->update(['editor' => 'tinymce']);
        }
    }
}
