recover the index of tables and modify EntrustRole class. Now it supports setting $role->permissions directly to update a role's permissions. More over, if $role->perms()->sync(array(...)) is called, the permissions json is also saved in permissions table