re: A month of clean code VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks for your article. I agree with most of your refactoring except the first one. I really disagree with the idea of a method User::createFromCo...
 

To be clear, there is no actual Model/Request coupling. It's just coincidence that we pass the same object. To your point, we could easily use $request->only() to pluck these values out to pass down to the model.

code of conduct - report abuse