We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1316c26 commit d373a1cCopy full SHA for d373a1c
src/Illuminate/Database/Eloquent/Model.php
@@ -434,6 +434,20 @@ public function qualifyColumn($column)
434
return $this->getTable().'.'.$column;
435
}
436
437
+ /**
438
+ * Qualify the column's lists name by the model's table.
439
+ *
440
+ * @param array|mixed $columns
441
+ * @return array
442
+ */
443
+ public function qualifyColumns(...$columns) {
444
+ $qualifiedArray = [];
445
+ foreach($columns as $column) {
446
+ $qualifiedArray[] = $this->qualifyColumn($column);
447
+ }
448
+ return $qualifiedArray;
449
450
+
451
/**
452
* Create a new instance of the given model.
453
*
0 commit comments