public function postSave() { $settings = Input::get('set'); if (is_array($settings)) { foreach ($settings as $key => $set) { $sett = SettingsModel::find($key); if (!$sett) { $sett = new SettingsModel(); $sett->key = $key; } $sett->value = $set; $sett->save(); } } $jsn = @json_encode($settings); Log::info('Edit settings ' . $jsn); return []; }