Преглед на файлове

feat(products): adiciona ordem alfabetica

ebagabee преди 1 месец
родител
ревизия
ee119fffbe
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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