Skip to content
Discussion options

You must be logged in to vote

Hi @wit3 👍

you're always can use the rule attribute

#[Rule(['required', 'decimal:2,4'])] 
public float $price

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wit3
Comment options

@Nir-An
Comment options

Answer selected by wit3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants