From 13196c33d36ca88bf4c2b75da78de9632d4589f3 Mon Sep 17 00:00:00 2001 From: Kevin Ullyott Date: Thu, 19 Dec 2024 20:50:46 +0000 Subject: [PATCH] Fix broken migration Signed-off-by: Kevin Ullyott --- ...eed_permissions_give_proper_split_permissions_to_roles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(), );