diff --git a/app/Model/OrderInquiry.php b/app/Model/OrderInquiry.php index 42a76ee..2cb513f 100644 --- a/app/Model/OrderInquiry.php +++ b/app/Model/OrderInquiry.php @@ -130,7 +130,7 @@ class OrderInquiry extends Model */ public static function getOrderOne(array $params, array $fields = ['*']): object|null { - return self::where($params)->orderBy('created_at')->first($fields); + return self::where($params)->orderBy('created_at','desc')->first($fields); } /**