Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Jul. 5th 2017

Let's Build A Forum with Laravel and TDD: Refactoring to Form Requests

Episode 55 Run Time 12:03

Download

The RepliesController method that handles the submission of a new reply still feels a bit bloated to me. In this episode, we'll refactor it down to a single method call.

View the source code for this episode on GitHub.