Laravel Validation ~ Lesson 6: Laravel Authorization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Create Post Form
2. Fail validation
3. Larvel Validation Option 1: Request Validator Method
~ Understanding Database Failure Error vs. Request Validation Error
4. Laravel Validation Option One: Request Validation Example
5. Automatically re-populate form with input when request validation fails
6. Display Laravel Validation Errors To The User via Blade $errors
7. Add hidden input field to form for user_id to pass request validation
8. Part 2: Database Error vs. Request Validation Error
9. Properly Pass Database Validation & Request Validation to Store our user request
10. Laravel Validation Option 2: Validator Facade and make method
11. Adding custom validation failure messages
12. Hooking into the validator to show validation rule messages on a different page than where
the form failed validation
13. Laravel Validation Option 3: FormRequest Validation Classes
14. Refactor Validation Rules and Messages From Validator To FormRequest Class
15. Using the Laravel FormRequest Validation class (via dependency injection)
16. Refactoring authorization via policy to our form request class
17. Laravel FormRequest withValidator function
18. Removing hidden user_id field from blade using the Laravel FormRequest
prepareForValidation method
19. FormRequest $redirectRoute property to redirect user from formRequest class when
validation fails
20. Laravel Validation Rules Overview
21. Creating Custom Laravel Validation Rules Via Callback Function
22. Implementing Custom Laravel Rule As Callback Function
22. Creating Custom Laravel Validation Rules Via Laravel Rule class
23. Implementing Custom Laravel Validation Rule as a Class
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Clean Code Studio ~ Simplify!
Clean Code Clean Life
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
https://cleancode.studio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#LaravelValidation #LaravelAuthorization #LaravelRequestValidation