File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
src/Illuminate/Database/Eloquent Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1518,7 +1518,7 @@ public function qualifyColumn($column)
1518
1518
}
1519
1519
1520
1520
/**
1521
- * Qualify the column's lists name by the model's table.
1521
+ * Qualify the given columns with the model's table.
1522
1522
*
1523
1523
* @param array|\Illuminate\Database\Query\Expression $columns
1524
1524
* @return array
Original file line number Diff line number Diff line change @@ -435,20 +435,16 @@ public function qualifyColumn($column)
435
435
}
436
436
437
437
/**
438
- * Qualify the column's lists name by the model's table.
438
+ * Qualify the given columns with the model's table.
439
439
*
440
440
* @param array $columns
441
441
* @return array
442
442
*/
443
443
public function qualifyColumns ($ columns )
444
444
{
445
- $ qualifiedArray = [];
446
-
447
- foreach ($ columns as $ column ) {
448
- $ qualifiedArray [] = $ this ->qualifyColumn ($ column );
449
- }
450
-
451
- return $ qualifiedArray ;
445
+ return collect ($ columns )->map (function ($ column ) {
446
+ return $ this ->qualifyColumn ($ column );
447
+ })->all ();
452
448
}
453
449
454
450
/**
You can’t perform that action at this time.
0 commit comments