// Create an editor user
$editorUser = User::factory()->create();
$editorRole = Role::getRole('editor');
+ $additionalEditorPerms = ['receive-notifications'];
+ $editorRole->permissions()->syncWithoutDetaching(RolePermission::whereIn('name', $additionalEditorPerms)->pluck('id'));
$editorUser->attachRole($editorRole);
// Create a viewer user