-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilesystems.go
37 lines (34 loc) · 1.06 KB
/
filesystems.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package config
import (
"github.com/goravel/framework/facades"
"github.com/goravel/framework/support/path"
)
func init() {
config := facades.Config()
config.Add("filesystems", map[string]any{
// Default Filesystem Disk
//
// Here you may specify the default filesystem disk that should be used
// by the framework. The "local" disk, as well as a variety of cloud
// based disks are available to your application. Just store away!
"default": config.Env("FILESYSTEM_DISK", "local"),
// Filesystem Disks
//
// Here you may configure as many filesystem "disks" as you wish, and you
// 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", "custom"
"disks": map[string]any{
"local": map[string]any{
"driver": "local",
"root": path.Storage("app"),
},
"public": map[string]any{
"driver": "local",
"root": path.Storage("app/public"),
"url": config.Env("APP_URL", "").(string) + "/storage",
},
},
})
}