Skip to content

Decimal Attribute Validation #421

Closed Answered by Nir-An
wit3 asked this question in Q&A
Apr 20, 2023 · 1 comments · 2 replies
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