captcha.php 879 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * 请将该文件放置于config目录
  5. */
  6. return [
  7. 'font_file' => '', //自定义字体包路径, 不填使用默认值
  8. //文字验证码
  9. 'click_world' => [
  10. 'backgrounds' => []
  11. ],
  12. //滑动验证码
  13. 'block_puzzle' => [
  14. 'backgrounds' => [], //背景图片路径, 不填使用默认值
  15. 'templates' => [], //模板图
  16. 'offset' => 10, //容错偏移量
  17. ],
  18. //水印
  19. 'watermark' => [
  20. 'fontsize' => 12,
  21. 'color' => '#ffffff',
  22. 'text' => '我的水印'
  23. ],
  24. 'cache' => [
  25. 'constructor' => [\Illuminate\Support\Facades\Cache::class, 'store'],
  26. 'method' => [
  27. 'get' => 'get', //获取
  28. 'set' => 'set', //设置
  29. 'delete' => 'delete',//删除
  30. 'has' => 'has' //key是否存在
  31. ]
  32. ]
  33. ];