public function setNotificationSetting($method, $enabled = true) { $this->{"notification:method:{$method}"} = (int) $enabled; return (bool) $this->save(); }