Php Spatiale v3(权限)创建权限/角色可以与所有卫兵共享,而无需将其多次添加到表中?

Php Spatiale v3(权限)创建权限/角色可以与所有卫兵共享,而无需将其多次添加到表中?,php,laravel,spatie,Php,Laravel,Spatie,我的项目中有多个守卫,因此我希望避免表中的角色和权限名称重复 // Create a manager role for users authenticating with the any guard: // (role can be use by any guard) $role = Role::create(['guard_name' => '*', 'name' => 'manager']); // Define a publish articles permission f

我的项目中有多个守卫,因此我希望避免表中的角色和权限名称重复

// Create a manager role for users authenticating with the any guard: 
// (role can be use by any guard)
$role = Role::create(['guard_name' => '*', 'name' => 'manager']);

// Define a publish articles permission for the users belonging to the any guard
$permission = Permission::create(['guard_name' => '*', 'name' => 'publish articles']);