getConfigValue('semester') ?? ''); } public function getCurrentSchoolYear(): string { return (string) ($this->getConfigValue('school_year') ?? ''); } private function getConfigValue(string $key): mixed { return $this->configuration ->newQuery() ->where('config_key', $key) ->value('config_value'); } }