You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill forms from a model (including relationships and casts), derive validation rules and attribute names from the schema ($form->rules(), $form->validate($request)), and dehydrate submitted data back onto the model.
Done in 2e6b66a; docs in validation-and-saving.md. State is filled from old input, then the record (casts, enums, dates, BelongsTo foreign keys, BelongsToMany keys, media), then defaults. Rules, attribute names and messages come from the schema, for the fields visible and enabled for the submitted state. validate() returns only dehydrated fields. fillModel(), save() and saveRelationships() handle syncing and media.
Activity
Fluent schema API, closure evaluation, renderer drivers, binding and …
n4ff4h commentedon Nov 4, 2026
Done in 2e6b66a; docs in validation-and-saving.md. State is filled from old input, then the record (casts, enums, dates, BelongsTo foreign keys, BelongsToMany keys, media), then defaults. Rules, attribute names and messages come from the schema, for the fields visible and enabled for the submitted state.
validate()returns only dehydrated fields.fillModel(),save()andsaveRelationships()handle syncing and media.