Level 17
You can do that in middlewares
What would be good place to modify input in some way before sending to model, or validaton? And not to flood controller with that code?
For instance if i need some file upload. I need to check if file uploaded successfully, return path, and append to object data to save to database. Is there common practice for this kind of job?
Anything coming from a form I deal with in Form Request.
I certainly would not do it in middleware.
Please or to participate in this conversation.