M0: Laravel 12 + Filament 5.7 脚手架,安装 spatie 全家桶/workerman/yansongda/pay,基础配置
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 附件存储(S3 兼容:Cloudflare R2 / 腾讯 COS / 阿里 OSS)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| S3_ENDPOINT 示例:
|
||||
| R2: https://<ACCOUNT_ID>.r2.cloudflarestorage.com
|
||||
| COS: https://cos.<region>.myqcloud.com
|
||||
| OSS: https://oss-<region>.aliyuncs.com
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'disk' => env('UPLOAD_DISK', 'uploads'),
|
||||
|
||||
'key' => env('S3_ACCESS_KEY'),
|
||||
'secret' => env('S3_SECRET_KEY'),
|
||||
'region' => env('S3_REGION', 'auto'),
|
||||
'bucket' => env('S3_BUCKET'),
|
||||
'endpoint' => env('S3_ENDPOINT'),
|
||||
'use_path_style_endpoint' => env('S3_USE_PATH_STYLE_ENDPOINT', false),
|
||||
'url' => env('S3_URL'),
|
||||
'visibility' => env('S3_VISIBILITY', 'public'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 大文件直接上传阈值(超过则走 MultipartUpload)
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'multipart_threshold' => env('S3_MULTIPART_THRESHOLD', 50 * 1024 * 1024),
|
||||
];
|
||||
Reference in New Issue
Block a user