Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is type in auth_item table in rbac Yii2

Tags:

php

yii

yii2

I have been trying to setup rbac DbManager following the Yii2 GUide. So, I have create tables in database as their instruction using the migrate command. I found that there are few tables created. Now my problem is that there is column type in the table auth_item. I do not understand why it is used?

like image 785
StreetCoder Avatar asked Jan 09 '23 18:01

StreetCoder


1 Answers

It is simply the auth item type :

The type of the item. This should be either TYPE_ROLE or TYPE_PERMISSION.

Read more : http://www.yiiframework.com/doc-2.0/yii-rbac-item.html

like image 150
soju Avatar answered Jan 18 '23 11:01

soju