Products are now ordered by 'created_at' desc
This commit is contained in:
parent
98762d68a8
commit
dae0c6271a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue