belongsTo(User::class); } public static function getUserSettings($userId) { return self::where('user_id', $userId)->pluck('value', 'key')->toArray(); } }