protected function getSettingObjectByKey($key) { return $this->setting->where('setting_key', '=', $key)->first(); }