In the previous episodes, we created our first custom Sylius Resource. In this episode, we’ll see how to add validation to it. We’ll create validation configuration, define rules, and even build our own custom Constraint and Validator.
Create your first Sylius Resource by building a Brand entity and explore what Sylius gives you out of the box, including factories, repositories, and resource debugging tools.
Expose a custom Brand resource in the Sylius admin, configure CRUD routes with a single routing definition, and explore how ResourceController works with Twig templates.
Learn how Sylius uses an event-driven approach, which events are dispatched by the ResourceController, and how to extend behavior using event listeners.
Learn how to create products in Sylius, understand the difference between simple and configurable products, and explore product configuration in the admin panel.