Laravel 5 now allows validation of input values using FormRequest.The namespace where this FormRequest is placed is App\Http\Requests
.
When you generate the controller, you don't have to use FormRequest, so you can turn it off, and if you specify App\Http\Requests\HogeRequest
, you don't need to use it.It's also good to use it by class.
Note: Similar opinions were mentioned in Issue
Remove dead reference from controller stubs by miclf ·Pull Request #8656 ·larvel/framework
It's to make it more convenient to type-hint Form Requests.
--- Quoted from Taylor Otwell's comments
See also
© 2024 OneMinuteCode. All rights reserved.