Skip to content

Commit 16e2648

Browse files
authored
Merge pull request laravel#2455 from ndeet/patch-1
Remove old reference to mailer and replace it with UserRepository
2 parents 12c067d + 810b63b commit 16e2648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Let's look at a simple example:
6060
}
6161
}
6262

63-
In this example, the `UserController` needs to retrieve users from a data source. So, we will **inject** a service that is able to retrieve users. In this context, our `UserRepository` most likely uses [Eloquent](/docs/{{version}}/eloquent) to retrieve user information from the database. However, since the repository is injected, we are able to easily swap it out with another implementation. We are also able to easily "mock", or create a dummy implementation of the mailer when testing our application.
63+
In this example, the `UserController` needs to retrieve users from a data source. So, we will **inject** a service that is able to retrieve users. In this context, our `UserRepository` most likely uses [Eloquent](/docs/{{version}}/eloquent) to retrieve user information from the database. However, since the repository is injected, we are able to easily swap it out with another implementation. We are also able to easily "mock", or create a dummy implementation of the `UserRepository` when testing our application.
6464

6565
A deep understanding of the Laravel service container is essential to building a powerful, large application, as well as for contributing to the Laravel core itself.
6666

0 commit comments

Comments
 (0)