chore: 重写初始提交(清空历史,整理后全量提交)

This commit is contained in:
ywxapp
2026-08-16 16:54:14 +08:00
commit 6c1a106bc1
1808 changed files with 238144 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
// +----------------------------------------------------------------------
// | YwxApp [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2026-2036 http://ywxapp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: ywxapp<admin@ywxapp.cn>
// +----------------------------------------------------------------------
return [
// 默认使用的驱动
'default' => env('FILE_STORAGE_DRIVER', 'local'),
// 各驱动详细配置
'drivers' => [
// 本地驱动配置
'local' => [
'class' => 'ywxapp\utils\storage\LocalStorage',
'root' => app()->getRootPath() . 'public/storage',
'url' => '/storage',
'visibility' => 'public',
'domain' => '', // 域名,留空自动拼接
],
// 阿里云OSS配置
'alioss' => [
'class' => 'ywxapp\utils\storage\AliOssStorage',
'access_key_id' => env('ALIOSS_ACCESS_KEY'),
'access_key_secret' => env('ALIOSS_SECRET_KEY'),
'endpoint' => env('ALIOSS_ENDPOINT'),
'bucket' => env('ALIOSS_BUCKET'),
'cdn_domain' => env('ALIOSS_CDN_DOMAIN'), // 可选
],
// 腾讯云COS配置
'qcos' => [
'class' => 'ywxapp\utils\storage\QcloudCosStorage',
'region' => env('QCOS_REGION'),
'secret_id' => env('QCOS_SECRET_ID'),
'secret_key' => env('QCOS_SECRET_KEY'),
'bucket' => env('QCOS_BUCKET'),
],
],
];