Validating the Order Model
Add validation rules for the Order model in the application.
We'll cover the following...
We want to validate two things for the Order
model:
- The value of
total
must be greater than zero. - The parameter
total