public function config(Request $request)
    {
        if ($key = $request->query('key')) {
            /** @see Config::get() */
            return \config($key);
        }

        /** @see Config::toArray() */
        return \bean('config')->toArray();
    }