Upgrading to Laravel 5.5

Something Smells in Our Controller

Avoiding Service Classes with Method Injection

This free course uses older versions of Laravel. It is provided as-is, without ongoing updates or individual support.

In this lesson, we notice that we're lacking a single source of truth for the amount we charge the customer and the amount used to create the new order.

We walk through what it might look like to solve this problem with a service class, and then how we can avoid the service class entirely using method injection.