From c8b9d639aedf8fcc300a4d38dab7f7dbcbe5bfb4 Mon Sep 17 00:00:00 2001 From: Peter Elmered Date: Thu, 22 Feb 2024 05:05:25 +0100 Subject: [PATCH] Add documentation for min and max values --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 42a4d46..0053efe 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,13 @@ MoneyInput::make('price') MoneyInput::make('price') ->currency('SEK') ->locale('sv_SE'); + + +MoneyInput::make('price') + ->currency('SEK') + ->locale('sv_SE') + ->minValue(0) // Do not allow negative values. + ->maxValue(10000); // Add min and max value (in minor units, i.e. cents) to the input field. In this case no values over 100 ``` ### Table column