updateOrCreate(['user_id' => $user->getKey()], $values); } /** One value of what this account chose, or null. */ public static function value(?object $user, string $column): ?string { return $user === null || $user->getKey() === null ? null : static::query()->where('user_id', $user->getKey())->value($column); } public function getTable(): string { return Names::table('user_settings'); } }