Просмотр исходного кода

feat(products): adiciona ordem alfabetica

ebagabee 1 месяц назад
Родитель
Сommit
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