2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 03:22:32 +08:00
Files
panel/bootstrap/app.go
2023-07-22 02:31:07 +08:00

22 lines
333 B
Go

package bootstrap
import (
"github.com/goravel/framework/foundation"
"github.com/goravel/framework/support/carbon"
"panel/config"
)
func Boot() {
app := foundation.NewApplication()
// Bootstrap the application
app.Boot()
// Bootstrap the config.
config.Boot()
// 设置 Carbon 时区
carbon.SetTimezone(carbon.PRC)
}