mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
Order towns by id
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user