DEV Community

Discussion on: Different ways to use Laravel Form Requests

Collapse
 
ayoubbousetta profile image
AYOUB BOUSETTA

Not bad, but i guess it's a little bit over-engineered

Collapse
 
jovialcore profile image
Chidiebere Chukwudi

This!...

Collapse
 
othmane_nemli profile image
Othmane Nemli

It just depend on how you want to structure your project.

Collapse
 
muhammadmp profile image
Muhammad MP

I prefer to create another form request class for the update method.

Collapse
 
bowie profile image
Bowie

+1 to this. I've created two classes both extending the FormRequest class for this. Alternatively you could create a super class in between for inheritance. While the proposed method in this article isn't bad, I prefer this method personally