32 lines
637 B
PHP
32 lines
637 B
PHP
<?php
|
|
|
|
namespace Modules\Permissions\Providers;
|
|
|
|
use Catch\CatchAdmin;
|
|
use Catch\Providers\CatchModuleServiceProvider;
|
|
use Modules\Permissions\Middlewares\PermissionGate;
|
|
|
|
class PermissionsServiceProvider extends CatchModuleServiceProvider
|
|
{
|
|
/**
|
|
* middlewares
|
|
*
|
|
* @return string[]
|
|
*/
|
|
protected function middlewares(): array
|
|
{
|
|
return [PermissionGate::class];
|
|
}
|
|
|
|
/**
|
|
* route path
|
|
*
|
|
* @return string|array
|
|
*/
|
|
public function routePath(): string|array
|
|
{
|
|
// TODO: Implement path() method.
|
|
return CatchAdmin::getModuleRoutePath('Permissions');
|
|
}
|
|
}
|