Updated labels_assigned insert

Updated labels_assigned insert
This commit is contained in:
cp6 2022-10-20 11:27:01 +11:00
parent 2139629077
commit 9c1a853d6a

View File

@ -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]);
}
}
}