->orderByRaw('cast(sale_money as SIGNED) DESC')->orderBy('audit_time', 'desc')
使用orderByRaw
->orderByRaw('cast( '.$property.' as SIGNED) '.$order)
也可以像这样传入变量
->orderByRaw('cast(sale_money as SIGNED) DESC')->orderBy('audit_time', 'desc')
使用orderByRaw
->orderByRaw('cast( '.$property.' as SIGNED) '.$order)
也可以像这样传入变量