From 9c1a853d6a8118550a489b2e5c4d13f348e5c457 Mon Sep 17 00:00:00 2001 From: cp6 Date: Thu, 20 Oct 2022 11:27:01 +1100 Subject: [PATCH] Updated labels_assigned insert Updated labels_assigned insert --- app/Models/Labels.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Labels.php b/app/Models/Labels.php index 0d8104a..0e98598 100644 --- a/app/Models/Labels.php +++ b/app/Models/Labels.php @@ -33,7 +33,7 @@ class Labels extends Model { for ($i = 1; $i <= 4; $i++) { if (!is_null($labels_array[($i - 1)])) { - DB::insert('INSERT INTO labels_assigned (label_id, service_id) values (?, ?)', [$labels_array[($i - 1)], $service_id]); + DB::table('labels_assigned')->insert(['label_id' => $labels_array[($i - 1)], 'service_id' => $service_id]); } } }