We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 854e8a7 commit 54ab1c4Copy full SHA for 54ab1c4
1 file changed
src/PermissionService.php
@@ -3,12 +3,15 @@
3
namespace xiaodi\Permission;
4
5
use xiaodi\Permission\Middleware\Permission;
6
+use xiaodi\Permission\Middleware\Role;
7
8
class PermissionService extends \think\Service
9
{
10
public function register()
11
12
$this->app->bind('auth', Permission::class);
13
+ $this->app->bind('auth.permission', Permission::class);
14
+ $this->app->bind('auth.role', Role::class);
15
}
16
17
public function boot()
0 commit comments