adamnet's avatar

Min and max values for number field in blade view

Hello. I have a blade view with a form which has a field of type number. Quantity: Is it possible to have dynamic min and max values calculated by the controller's method?

1 like
3 replies
vincent15000's avatar

Yes it's possible.

You pass the min and the max values to the view.

<input type="number" min="{{ $min }}" max="{{ $max }}" />
1 like
vincent15000's avatar

Happy to help ;).

If you have solved your problem, please close the post.

Please or to participate in this conversation.