Back to Browse

Projects: Validating Project Creation with a Validation Guard

72 views
Mar 9, 2020
5:36

In this video we add validation to our Project creation route using a Validation Guard and pre-defined validation rules that are included in Alpas. Steps 1. Create a Validation Guard 2. Add rules to the Validation Guard for each of our fields 3. Move the project creation into our Validation Guard to keep our controller clean, make it easier to re-use, and easier to test Source Code https://github.com/alpascasts/fireplace/releases/tag/v0.7.0 References 1. Validation Guards: https://alpas.dev/docs/validation#validation-guard 2. List of built in Validation Rules: https://alpas.dev/docs/validation#bundled-validation-rules 3. Rendering Validation Errors: https://alpas.dev/docs/validation#rendering-validation-errors

Download

0 formats

No download links available.

Projects: Validating Project Creation with a Validation Guard | NatokHD