thepsion5/refactoring-exercise-1 — pull request #1 by Brobin (2014-07-31 22:52:55+00:00)
Title: My Refactoring attempt

Here's my attempt at refactoring this controller. I'm pretty new to Laravel and its a little difficult to test this, but I'm pretty sure it works.

What I did
- Made the select arrays a function to reduce repeating yourself
- Used Session::flush() instead of deleting each value individually
- Took advantage of Input::flash() to put all the Input to the Session.
- Made the View return with an array instead of all the individual statements
- Made it more readable

Like I said, I'm pretty new to this. All comments and criticisms welcome!