Skip to content

Commit 3437751

Browse files
committed
sort events in event:list command
1 parent c84e44d commit 3437751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/EventListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ protected function getEvents()
4848

4949
return collect($events)->map(function ($value, $key) {
5050
return ['Event' => $key, 'Listeners' => implode("\n", $value)];
51-
})->values()->toArray();
51+
})->sortBy('Event')->values()->toArray();
5252
}
5353
}

0 commit comments

Comments
 (0)