['title' => 'Русский', 'is_enabled' => true, 'is_default' => true], 'en' => ['title' => 'English', 'is_enabled' => true], 'ua' => ['title' => 'Українська', 'is_enabled' => true] ]; public function run() { collect($this->locales)->each(function($data, $name) { $model = Locale::firstOrCreate(['name' => $name]); $model->update(collect($data)->all()); }); } }