Order towns by id

This commit is contained in:
slawkens 2024-06-05 15:10:55 +02:00
parent ec96985872
commit 9ea2a5067f

View File

@ -124,6 +124,6 @@ class Towns
*/ */
public static function getFromDatabase() public static function getFromDatabase()
{ {
return Town::pluck('name', 'id')->toArray(); return Town::orderBy('id', 'ASC')->pluck('name', 'id')->toArray();
} }
} }