Skip to content

Release 2.3

Compare
Choose a tag to compare
@arondeparon arondeparon released this 22 Jul 13:56
fc3f15e

This releases changes behaviour to be more compliant with Laravel's standards.

After a FormRequest instance has resolved in the application container, the validator will be automatically called. Before the validation runs, prepareForValidation() is triggered which has the purpose of altering request data before it enters validation, which is exactly what this package does! 🔥

This tests also borrow a lot of test scaffolding from Laravel's internal testing, because it is not trivial to create a FormRequest object without initialising the entire application.

There should be no impact on end users, since the sanitizer was previously also automatically called once validation started. Now, it just does it in a more compliant way 😊