DEV Community

Discussion on: Laravel fit models.

Collapse
 
fireynis profile image
Jeremy MacArthur

But don't you have the same amount of methods but just spread over a few files?

Thread Thread
 
bakle profile image
bakle

Yes but not directly inside the model. That is why I refer to "reducing the number of methods within the model", this make the model itself easier to read. Extract methods into specific files is one of the principles of refactoring.