1
This commit is contained in:
parent
66e5287782
commit
b8bdf25d36
@ -130,7 +130,7 @@ class OrderInquiry extends Model
|
|||||||
*/
|
*/
|
||||||
public static function getOrderOne(array $params, array $fields = ['*']): object|null
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user