Explorar o código

feat(products): adiciona ordem alfabetica

ebagabee hai 1 mes
pai
achega
ee119fffbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/ProductService.php

+ 1 - 1
app/Services/ProductService.php

@@ -9,7 +9,7 @@ class ProductService
 {
     public function getAll(): Collection
     {
-        return Product::orderBy('created_at', 'desc')->get();
+        return Product::orderBy('name')->get();
     }
 
     public function getAllForSelect(): Collection