From ebe2700cfd45c488709b0bea003bc816813bfd6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 17 Feb 2024 17:08:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=AD=A5=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/app.go | 14 ++++++++++++++ config/filesystems.go | 11 ++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/config/app.go b/config/app.go index 7a50599c72..2c9e0103dc 100644 --- a/config/app.go +++ b/config/app.go @@ -55,6 +55,20 @@ func init() { // More: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones "timezone": carbon.PRC, + // Application Locale Configuration + // + // The application locale determines the default locale that will be used + // by the translation service provider.You are free to set this value + // to any of the locales which will be supported by the application. + "locale": "zh_CN", + + // Application Fallback Locale + // + // The fallback locale determines the locale to use when the current one + // is not available.You may change the value to correspond to any of + // the language folders that are provided through your application. + "fallback_locale": "zh_CN", + // Encryption Key // // 32 character string, otherwise these encrypted strings diff --git a/config/filesystems.go b/config/filesystems.go index 3395a85822..8a7218b6a0 100644 --- a/config/filesystems.go +++ b/config/filesystems.go @@ -2,7 +2,6 @@ package config import ( "github.com/goravel/framework/facades" - "github.com/goravel/framework/support/path" ) func init() { @@ -21,17 +20,11 @@ func init() { // may even configure multiple disks of the same driver. Defaults have // been set up for each driver as an example of the required values. // - // Supported Drivers: "local", "s3", "oss", "cos", "minio", "custom" + // Supported Drivers: "local" "disks": map[string]any{ "local": map[string]any{ "driver": "local", - "root": "/", - "url": "http://localhost/", - }, - "public": map[string]any{ - "driver": "local", - "root": path.Storage("app/public"), - "url": config.Env("APP_URL", "").(string) + "/storage", + "root": "/www/panel/storage", }, }, })