public function whereNotIn($column, $values, $boolean = 'and') { return $this->whereIn($column, $values, $boolean, true); }
/** * Store settings in the database. */ public function save() { if ($this->unsaved) { $all = $this->getData(); $data = array_dot($all); foreach ($data as $key => $value) { $this->options->updateOrCreate(compact('key'), compact('key', 'value')); } $this->options->whereNotIn('key', array_keys($data))->delete(); $this->unsaved = false; } }