dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Validate FormRequest when resolved - add to Laravel service provider #1666

Closed specialtactics closed 5 years ago

specialtactics commented 5 years ago

Original credit goes to @sudkumar and his PR here https://github.com/dingo/api/pull/1654

I just ported the same functionality to the Laravel service provider.

After doing some testing, previously (as in previous to this PR), FormRequests were not being validated at the controller level upon resolution, and now they will be (which is the default and expected Laravel functionality).