3
mcfly
47d

So I'm adding a new input on an existing create form , then I go and find the method that takes care of the creation and it's basically just called "handle" and it's a 500 lines long unmaintainable piece of shit.

Comments
  • 1
  • 3
    So it goes like this, the form hits a "create" method of about 15 lines in the controller, within the create method the request data is passed to the 500 lines "handle" method along with another 4 arguments, one of those arguments not even in the last position is "false" which is an optional argument on the "handle" method with a default value of false... so the result of this handle method is assigned to a variable and in case that variable is an array it returns the array, if not it returns a success string.... this was written by the lead dev. The app is written in php/laravel.
Add Comment