bound('flarum.config'); } public static function inDebugMode() { return static::isInstalled() && app('flarum.config')['debug']; } public static function config($key, $default = null) { if (! static::isInstalled()) { return $default; } if (is_null($value = app('flarum.db')->table('config')->where('key', $key)->pluck('value'))) { $value = $default; } return $value; } }