enum.php 528 B

123456789101112131415161718192021
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. return [
  11. 'localization' => [
  12. 'key' => env('ENUM_LOCALIZATION_KEY', 'enums'),
  13. ],
  14. // 你可以将请求参数中用到的枚举定义在下面,通过中间件,将会被自动转换成枚举类
  15. 'transformations' => [
  16. // 参数名 => 对应的枚举类
  17. ],
  18. ];