Merge branch 'issue-59' into 'develop'

Products are now ordered by 'created_at' desc

Closes #59

See merge request ldc-web/projets/startcoq!25
This commit is contained in:
Vincent BRIDIER 2023-09-29 15:59:50 +00:00
commit a4ed3dbb0f

View file

@ -32,7 +32,7 @@ class ProductController extends Controller
$brandsQuery = Brand::query();
/** @var \Illuminate\Database\Eloquent\Builder $productsQuery */
$productsQuery = Product::query();
$productsQuery = Product::query()->orderBy('created_at', 'desc');
$this->requestFilters($request, $productsQuery);