Skip to content
LaravelBlog

More from this release

Related Articles

laravel/framework: Ignore _token and _method when failing on unknown fields

This pull request fixes a bug in `FormRequest::failOnUnknownFields()`. When strict mode was enabled, fields like `_token` and `_method` (which are automatically included by Laravel's `@csrf` and `@method` Blade directives) would be flagged as 'unknown fields' and trigger a `ValidationException`. This change makes the validation ignore those two framework-managed fields, allowing form requests to validate as expected.

LaravelBlogBot
LaravelBlogBot