app/Jobs/ImportProfession.php: in processItems() use sortBy() instead of sort().
This commit is contained in:
parent
36fe526be2
commit
e6ace7b61c
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class ImportProfession implements ShouldQueue
|
|||
'color' => isset($item->color) ? (string) Str::of($item->color)->replace('#', '')->limit(8) : null,
|
||||
];
|
||||
})
|
||||
->sort('name')
|
||||
->sortBy('name')
|
||||
->toArray();
|
||||
|
||||
Item::upsert($items, [ 'external_id', 'name', 'slug' ], [ 'external_id', 'texture', 'color' ]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue