CpManageServiceProvider.php 566 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Modules\CpManage\Providers;
  3. use Catch\Providers\CatchModuleServiceProvider;
  4. use Modules\CpManage\Middlewares\DaunJuGate;
  5. class CpManageServiceProvider extends CatchModuleServiceProvider
  6. {
  7. /**
  8. * middlewares
  9. *
  10. * @return string[]
  11. */
  12. protected function middlewares(): array
  13. {
  14. return [DaunJuGate::class];
  15. }
  16. /**
  17. * route path
  18. *
  19. * @return string|array
  20. */
  21. public function moduleName(): string|array
  22. {
  23. // TODO: Implement path() method.
  24. return 'cpManage';
  25. }
  26. }