From 9631661988bb063dd01b34d46fce42da0011b487 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Thu, 2 Jan 2020 19:01:43 +0000 Subject: [PATCH] :books: Update documentation about dependency injection support --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dfaadde..206710c 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ public function afterValidator($validator) } ``` -It is worth noting that, just like the `handle` method, the `withValidator` and `afterValidator` methods [support dependency injections](#dependency-injections). +It is worth noting that, just like the `handle` method, the `rules`, `withValidator` and `afterValidator` methods [support dependency injections](#dependency-injections). If you want to validate some data directly within the `handle` method, you can use the `validate` method. @@ -295,6 +295,8 @@ public function attributes() } ``` +It is worth noting that, just like the `handle` method, the `messages`, `attributes` methods [support dependency injections](#dependency-injections). + ## Actions as objects ### How are attributes filled?