public function missingKey($namespace, $group, $key) { if (!in_array($group, $this->config['exclude_groups'])) { $locales = Locale::all(); foreach ($locales as $locale) { Translation::firstOrCreate(array('locale_id' => $locale->id, 'group_id' => $group, 'key' => $key)); } } }