Task 8 - customize validation messages

This commit is contained in:
PovilasKorop
2021-11-29 15:47:54 +02:00
parent ce6827fab8
commit 254985ac99
8 changed files with 130 additions and 3 deletions
+8
View File
@@ -88,3 +88,11 @@ Test method `test_update_forbidden_field()`.
---
## Task 8. Customize Validation Messages.
In `app/Http/Controllers/BuildingController.php` file, in `store` method, the code uses `StoreBuildingRequest` Form Request class. Change that class to customize the validation rule for "name" field as "required", to show message "Please enter the name" instead of the default "The field name is required".
Test method `test_custom_error_message()`.
---