json($this->repository->publicGrouped()); } /** * Return public settings for a single group. */ #[OA\Get( path: '/api/v1/settings/{group}', summary: 'Tek grup ayarlarını getir', tags: ['Settings'], parameters: [new OA\Parameter(name: 'group', in: 'path', required: true, schema: new OA\Schema(type: 'string'))], responses: [ new OA\Response(response: 200, description: 'Grup ayarları'), new OA\Response(response: 404, description: 'Grup bulunamadı'), ], )] public function show(string $group): JsonResponse { $settingGroup = SettingGroup::tryFrom($group); if (! $settingGroup) { abort(404, 'Ayar grubu bulunamadı.'); } return response()->json($this->repository->publicByGroup($settingGroup)); } }