middleware.php 379 B

123456789101112
  1. <?php
  2. // 中间件配置
  3. return [
  4. // 别名或分组
  5. 'alias' => [
  6. 'checkAuth'=>app\common\middleware\CheckAuth::class,
  7. 'manageAuth'=>app\common\middleware\ManageAuth::class,
  8. 'apiAuth'=>app\common\middleware\ApiAuth::class,
  9. ],
  10. // 优先级设置,此数组中的中间件会按照数组中的顺序优先执行
  11. 'priority' => [],
  12. ];