Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Form Request Validation For Filament Laravel Package

occ-therapist/form-request-validation-for-filament

Reuse Laravel Form Requests inside Filament: attach one to a schema or table filter and its rules, messages, and attributes apply automatically to matching fields, with wildcard mapping, context-aware per-page rules, and smart rule merging.

View on GitHub
Deep Wiki
Context7
v1.3.1

Fixes

  • CI: fix composer show listing step so tests actually run
  • Drop Laravel 11 from the test matrix and supported versions — Composer blocks 11.x installs due to unfixed security advisories (EOL)

Support

Dependency Version
PHP 8.2+
Laravel 12 or 13
Filament 4.x or 5.x

prepareForValidation() support from v1.3.0 is unchanged.

v1.2.0

v1.2.0 — Table Filters

New

  • Table::filtersFormRequest() — attach Form Requests to table filter forms
  • Automatic state path normalization for tableFilters.* and tableDeferredFilters.*
  • Deferred filters: validation runs when clicking Apply
  • Live filters (deferFilters(false)): validation runs on filter changes

Example

public function table(Table $table): Table
{
    return $table
        ->filters([
            Filter::make('created')->schema([
                DatePicker::make('from'),
                DatePicker::make('until'),
            ]),
        ])
        ->filtersFormRequest(
            class: fn () => FilterCustomersRequest::class,
        );
}

Upgrade

composer update occ-therapist/form-request-validation-for-filament
v1.1.0

v1.1.0 — Actions, Wizards & Relation Managers

New

  • Action modals — supports mountedActions.{n}.data.* state paths automatically
  • Wizards — validation hooks propagate to wizard steps; only active step fields are validated
  • Relation managers — works with relation manager forms and modal actions

Improvements

  • StatePathNormalizer for robust state path → form request key mapping
  • FormRequestSchemaRegistry::resolve() inherits config from parent schemas (wizard steps)
  • Orphan rules are skipped during partial validation (wizard steps), applied on full form submit

Upgrade

composer update occ-therapist/form-request-validation-for-filament
v1.0.3

Bug fix

Fixes a TypeError when Form Request rules are defined as pipe-separated strings:

'email' => 'required|email|max:255',  // now supported

Previously only array syntax was supported:

'email' => ['required', 'email', 'max:255'],

Upgrade

composer update occ-therapist/form-request-validation-for-filament
v1.0.2

Bug fix

Fixes a fatal error on Filament 5:

Declaration of FormRequestValidationHook::schema(Schema $schema) must be compatible with Component::schema(Closure|array $components)

The hook now resolves its parent schema via getContainer() instead of overriding Filament's schema() method.

Upgrade

composer update occ-therapist/form-request-validation-for-filament
v1.0.1

Bug fix

Fixes a fatal error on PHP 8.3 / Filament 5:

Declaration of FormRequestValidationHook::make(string $name = ...) must be compatible with Field::make(?string $name = null)

Upgrade

composer update occ-therapist/form-request-validation-for-filament
v1.0.0

Form Request Validation for Filament — v1.0.0

First stable release. Use Laravel Form Request validation inside Filament schemas.

Features

  • Attach Form Requests to Filament schemas via Schema::formRequest()
  • Automatic field mapping by name, including wildcard rules (items.*.name)
  • Support for rules(), messages(), and attributes()
  • Context-aware Form Request selection via callback (create vs. edit)
  • Dynamic rule resolution on every validation
  • Simulated HTTP request with route/input context (mergeInput)
  • Smart rule merging — Form Request rules take precedence on conflicts
  • Orphan rule handling via Filament notifications
  • getFormRequestValidated() helper trait
  • Filament 4 & 5 support
  • Laravel 11, 12, and 13 support

Installation

composer require occ-therapist/form-request-validation-for-filament

Supported in v1.0

  • Resource Create / Edit pages
  • Standalone forms / Settings pages

Coming soon

  • v1.1 — Actions, wizards, relation managers
  • v1.2 — Table filters
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums