miniprogram-poster.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. * This file is part of ibrand/laravel-miniprogram-poster.
  4. *
  5. * (c) 果酱社区 <https://guojiang.club>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. return [
  11. 'default' => [
  12. 'storage' => env('DEFAULT_POSTER_STORAGE', 'MiniProgramShare'),
  13. 'app' => env('APP_NAME', 'default'),
  14. ],
  15. //图片存储位置
  16. 'disks' => [
  17. 'qiniu' => [
  18. 'driver' => 'qiniu',
  19. //七牛云access_key
  20. 'access_key' => env('QINIU_ACCESS_KEY', ''),
  21. //七牛云secret_key
  22. 'secret_key' => env('QINIU_SECRET_KEY', ''),
  23. //七牛云文件上传空间
  24. 'bucket' => env('QINIU_BUCKET', ''),
  25. //七牛云cdn域名
  26. 'domain' => env('QINIU_DOMAIN', ''),
  27. //与cdn域名保持一致
  28. 'url' => env('QINIU_DOMAIN', ''),
  29. 'root' => storage_path('app/public/qiniu'),
  30. ],
  31. 'MiniProgramShare' => [
  32. 'driver' => 'local',
  33. 'root' => storage_path('app/public/share'),
  34. 'url' => env('APP_URL') . '/storage/share',
  35. 'visibility' => 'public',
  36. ],
  37. ],
  38. //图片宽度
  39. 'width' => '575px',
  40. //放大倍数
  41. 'zoomfactor' => 1.5,
  42. //1-9,9质量最高
  43. 'quality' => 9,
  44. //是否压缩图片
  45. 'compress' => true,
  46. //是否删除废弃图片文件
  47. 'delete' => true,
  48. ];