Skip to content

Commit

Permalink
Updated documentation with the upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavinho committed Jun 27, 2021
1 parent 7df64a9 commit fd0a9f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fd0a9f0

Please sign in to comment.