laravel 中小数验证的最佳做法是什么?

what is best practice for decimal validate in laravel?

我有这样的迁移:

$table->decimal('amount_settle', 15, 2);

如何在控制器中验证 amount_settle

通过 laravel 验证器,您可以通过以下代码行验证此验证器

$request->validate(["amount_settle"=>'required|numeric|between:0,99.99']);