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
345 Who developed the "avformat-59.dll" that comes with FFmpeg?
369 Update Flask User Information
351 I have saved several codes written in python to a visual studio file.
353 I want to create an array of sequences from "1" to a specified number.
355 Unity Virtual Stick Does Not Return to Center When You Release Your Finger
© 2023 OneMinuteCode. All rights reserved.