rafrsr/form-extra-bundle
Form Extra Bundle adds handy extra form types and helpers to Symfony, including autocomplete fields, select2 and datepicker widgets, and other reusable form utilities that reduce boilerplate when building rich forms.
Carbon instance or a normalized string. Pass a known-good value first, then pass an invalid value such as "not-a-date" and observe the transformation failure. Wire that failure into your normal exception handling early so invalid input does not silently corrupt downstream data.ValidationException, a domain-specific exception, or a 422 response depending on context. This keeps invalid datetime handling consistent across HTTP, queue, and console entry points.Carbon::parse() calls alongside the package transformer; the transformer should be the single conversion path.null, empty string, malformed strings, ambiguous formats, and timezone-offset inputs. The 1.0.1 behavior change is easiest to lock down with a dedicated invalid-datetime test case.\Exception. That keeps real bugs visible while handling expected invalid-input cases.null and empty-string semantics. Decide explicitly whether they should be treated as missing values, transformed to null, or rejected. Do not assume the transformer treats them the same as malformed strings.How can I help you explore Laravel packages today?