From 5c7eb0df57a7a76717a22233d978b974b37bc9a2 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 26 Sep 2021 15:41:11 +0100 Subject: [PATCH] Caught old string helper function usage Found by Laravel Shift Workbench --- .../2016_04_20_192649_create_joint_permissions_table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/migrations/2016_04_20_192649_create_joint_permissions_table.php b/database/migrations/2016_04_20_192649_create_joint_permissions_table.php index 5b43c7d54..31a7c5558 100644 --- a/database/migrations/2016_04_20_192649_create_joint_permissions_table.php +++ b/database/migrations/2016_04_20_192649_create_joint_permissions_table.php @@ -1,5 +1,6 @@ where('name', '=', $publicRoleData['display_name'])->count() > 0) { - $publicRoleData['display_name'] = $publicRoleData['display_name'] . str_random(2); + $publicRoleData['display_name'] = $publicRoleData['display_name'] . Str::random(2); } $publicRoleId = DB::table('roles')->insertGetId($publicRoleData);