From 1cb5a61ff22aa2a91bc26a6376d7ea6d00b36ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 5 Nov 2023 12:51:30 +0800 Subject: [PATCH] fix: try to fix tests --- config/cache.go | 2 +- config/filesystems.go | 6 ++++++ config/hashing.go | 2 +- go.mod | 4 ++-- go.sum | 5 +++++ 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/config/cache.go b/config/cache.go index dfd9240b..286bd657 100644 --- a/config/cache.go +++ b/config/cache.go @@ -19,7 +19,7 @@ func init() { // Here you may define all the cache "stores" for your application as // well as their drivers. You may even define multiple stores for the // same cache driver to group types of items stored in your caches. - // Available Drivers: "memory", "redis", "custom" + // Available Drivers: "memory", "custom" "stores": map[string]any{ "memory": map[string]any{ "driver": "memory", diff --git a/config/filesystems.go b/config/filesystems.go index 8e974dd2..3395a858 100644 --- a/config/filesystems.go +++ b/config/filesystems.go @@ -2,6 +2,7 @@ package config import ( "github.com/goravel/framework/facades" + "github.com/goravel/framework/support/path" ) func init() { @@ -27,6 +28,11 @@ func init() { "root": "/", "url": "http://localhost/", }, + "public": map[string]any{ + "driver": "local", + "root": path.Storage("app/public"), + "url": config.Env("APP_URL", "").(string) + "/storage", + }, }, }) } diff --git a/config/hashing.go b/config/hashing.go index 738ce306..c7979bf4 100644 --- a/config/hashing.go +++ b/config/hashing.go @@ -23,7 +23,7 @@ func init() { // factor by 1 doubles the necessary time. After a certain point, the returns on // hashing time versus attacker time are diminishing, so choose your cost factor wisely. "bcrypt": map[string]any{ - "rounds": 10, + "rounds": 12, }, // Argon2id Hashing Options diff --git a/go.mod b/go.mod index a7179a68..a9d26923 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/go-acme/lego/v4 v4.14.2 github.com/gookit/color v1.5.4 github.com/goravel/fiber v1.1.10 - github.com/goravel/framework v1.13.1-0.20231103030757-81cd82744019 + github.com/goravel/framework v1.13.3-0.20231105044008-e0020c289cb5 github.com/iancoleman/strcase v0.3.0 github.com/imroc/req/v3 v3.42.1 github.com/mojocn/base64Captcha v1.3.5 @@ -211,7 +211,7 @@ require ( gorm.io/driver/mysql v1.5.2 // indirect gorm.io/driver/postgres v1.5.2 // indirect gorm.io/driver/sqlserver v1.5.2 // indirect - gorm.io/gorm v1.25.5 // indirect + gorm.io/gorm v1.25.4 // indirect gorm.io/plugin/dbresolver v1.4.7 // indirect modernc.org/libc v1.22.5 // indirect modernc.org/mathutil v1.5.0 // indirect diff --git a/go.sum b/go.sum index 8b7e9af4..7ec1f7d8 100644 --- a/go.sum +++ b/go.sum @@ -385,8 +385,11 @@ github.com/goravel/file-rotatelogs v0.0.0-20211215053220-2ab31dd9575c h1:obhFK91 github.com/goravel/file-rotatelogs v0.0.0-20211215053220-2ab31dd9575c/go.mod h1:YSWsLXlG16u5CWFaXNZHhEQD10+NwF3xfgDV816OwLE= github.com/goravel/file-rotatelogs/v2 v2.4.1 h1:ogkeIFcTHSBRUBpZYiyJbpul8hkVXxHPuDbOaP78O1M= github.com/goravel/file-rotatelogs/v2 v2.4.1/go.mod h1:euk9qr52WrzM8ICs1hecFcR4CZ/ZZOPdacHfvHgbOf0= +github.com/goravel/framework v1.13.1-0.20231006012150-4a6e705dbd56/go.mod h1:jUJTB38V9LEDneVTmNxPl8ALQXjvtirfjck4XQI12J8= github.com/goravel/framework v1.13.1-0.20231103030757-81cd82744019 h1:Jnpiv77rlwWd6R2GWniqXfh1853Lc769mc6qKSz+CUc= github.com/goravel/framework v1.13.1-0.20231103030757-81cd82744019/go.mod h1:5jKFbJzfqhaQTP3HCgbyrpnrCyoJjxN5JWSXO96H0iQ= +github.com/goravel/framework v1.13.3-0.20231105044008-e0020c289cb5 h1:mnbl+AMWUSdPMuBqtVE9m1gvXWYtEwIXM6CP7SQMoYw= +github.com/goravel/framework v1.13.3-0.20231105044008-e0020c289cb5/go.mod h1:BOUTIwzhOMyKNXaxSYbVB74NkmbS2xv1W1fPRv9eDws= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= @@ -1164,6 +1167,8 @@ gorm.io/gorm v1.23.8/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk= gorm.io/gorm v1.25.2-0.20230530020048-26663ab9bf55/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k= gorm.io/gorm v1.25.2-0.20230610234218-206613868439/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k= gorm.io/gorm v1.25.2/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k= +gorm.io/gorm v1.25.4 h1:iyNd8fNAe8W9dvtlgeRI5zSVZPsq3OpcTu37cYcpCmw= +gorm.io/gorm v1.25.4/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k= gorm.io/gorm v1.25.5 h1:zR9lOiiYf09VNh5Q1gphfyia1JpiClIWG9hQaxB/mls= gorm.io/gorm v1.25.5/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8= gorm.io/plugin/dbresolver v1.4.7 h1:ZwtwmJQxTx9us7o6zEHFvH1q4OeEo1pooU7efmnunJA=