update emergency contact student controller
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user