From fd0a9f0cf82d3506982e7ef084fb3e98de048060 Mon Sep 17 00:00:00 2001 From: Gustavo Martinez Date: Sat, 26 Jun 2021 20:22:55 -0500 Subject: [PATCH] Updated documentation with the upgrade guide --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 47e5753..18c7a69 100644 --- a/README.md +++ b/README.md @@ -216,7 +216,8 @@ Update the renderIf() function in your action classes adding a new `$view` param Some new variants have been added to the config file, if you have published the config file before, you could publish it again so you can customize the new variants, this doesn't affect anything at all since the new variants will be taken from the default config file. **Remove `repository` method from your views (Optional)** -If your `repository` methods are returning a query object without any query applied like `User::query()`, you can define a `protected $model = User::class;` instead, this is the default behavior now, the `repository` method is still working so you don't need to change anything if you don't want to. + +If your `repository()` methods are returning a query object without any other query applied like `User::query()`, you can define a `protected $model = User::class;` instead, this is the default behavior now, the `repository()` method is still working so you don't need to change anything if you don't want to. ```php /* Before */