1
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user