You can validate request data using the validate method (available in the base Controller, provided by the ValidatesRequests trait).
If the rules pass, your code will keep executing normally; however, if validation fails, an error response containing the validation errors will automatically be se...