diff --git a/database/migrations/2024_12_19_201828_seed_permissions_give_proper_split_permissions_to_roles.php b/database/migrations/2024_12_19_201828_seed_permissions_give_proper_split_permissions_to_roles.php index e2f012970..4364bf9ae 100644 --- a/database/migrations/2024_12_19_201828_seed_permissions_give_proper_split_permissions_to_roles.php +++ b/database/migrations/2024_12_19_201828_seed_permissions_give_proper_split_permissions_to_roles.php @@ -64,7 +64,7 @@ public function up(): void $roleHasAssistantViewAnyPermissions ->map(fn (object $roleHasPermission): array => [ 'permission_id' => $assistantViewPermissionId, - 'role_id' => $roleHasPermission->id, + 'role_id' => $roleHasPermission->role_id, ]) ->all(), ); @@ -86,7 +86,7 @@ public function up(): void $roleHasRealtimeChatViewAnyPermissions ->map(fn (object $roleHasPermission): array => [ 'permission_id' => $realtimeChatViewPermissionId, - 'role_id' => $roleHasPermission->id, + 'role_id' => $roleHasPermission->role_id, ]) ->all(), );