后台客户倒序排列

This commit is contained in:
Edward Yang 2023-01-07 21:46:21 +08:00
parent 0b1bb96039
commit 581afaf330
1 changed files with 4 additions and 1 deletions

View File

@ -124,6 +124,8 @@ class CustomerRepo
$builder->where('customers.created_at', '<', $end);
}
$builder->orderByDesc('customers.created_at');
return $builder;
}
@ -137,7 +139,8 @@ class CustomerRepo
Customer::onlyTrashed()->find($id)->forceDelete();
}
public static function forceDeleteAll() {
public static function forceDeleteAll()
{
Customer::onlyTrashed()->forceDelete();
}