update emergency contact student controller

This commit is contained in:
root
2026-03-25 17:59:40 -04:00
parent 33be0c9a0d
commit c582bfc242
11 changed files with 179 additions and 16 deletions
@@ -46,4 +46,12 @@ class ConfigurationService
return (bool) $config->delete();
}
public function getByKey(string $key): ?Configuration
{
return Configuration::query()
->where('config_key', $key)
->orderByDesc('id')
->first();
}
}