Skip to content

Commit 1e6bfcd

Browse files
authored
feat: add sortByPath() so that moving files in sorted order (#52078)
1 parent 4fafdd9 commit 1e6bfcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/VendorPublishCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ protected function publishDirectory($from, $to)
309309
*/
310310
protected function moveManagedFiles($from, $manager)
311311
{
312-
foreach ($manager->listContents('from://', true) as $file) {
312+
foreach ($manager->listContents('from://', true)->sortByPath() as $file) {
313313
$path = Str::after($file['path'], 'from://');
314314

315315
if (

0 commit comments

Comments
 (0)