Skip to content

Commit

Permalink
feat: 同步框架更新
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Feb 17, 2024
1 parent bf56151 commit ebe2700
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
14 changes: 14 additions & 0 deletions config/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 2 additions & 9 deletions config/filesystems.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package config

import (
"github.com/goravel/framework/facades"
"github.com/goravel/framework/support/path"
)

func init() {
Expand All @@ -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",
},
},
})
Expand Down

0 comments on commit ebe2700

Please sign in to comment.