Skip to content

Automatic model binding and validation #7

Closed

Description

@n4ff4h

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.

Activity

  1. added
    next-genNext-gen Javaabu packages
    featurePackage feature from the spec
    on Nov 4, 2026
  2. n4ff4h commented on Nov 4, 2026

    @n4ff4h
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurePackage feature from the specnext-genNext-gen Javaabu packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions