|
|
@@ -9,7 +9,9 @@ class CityService
|
|
|
{
|
|
|
public function getAll(): Collection
|
|
|
{
|
|
|
- return City::orderBy("created_at", "desc")->get();
|
|
|
+ return City::with(["state:id,name", "country:id,name"])
|
|
|
+ ->orderBy("name", "asc")
|
|
|
+ ->get();
|
|
|
}
|
|
|
|
|
|
public function findById(int $id): ?City
|