Skip to content

Commit

Permalink
Upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Jan 8, 2023
1 parent 22c13ed commit 50bb409
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

Release v9 has new Eloquent model local scopes approach described in ([#226](https://github.com/cybercog/laravel-love/discussions/226#discussioncomment-4612667)).

### Scopes breaking changes

Reactable trait methods `scopeWhereReactedBy`, `scopeWhereNotReactedBy`, `scopeJoinReactionCounterOfType`, `scopeJoinReactionTotal`
were moved to `ReactableEloquentBuilderTrait`.

Expand All @@ -37,6 +39,17 @@ class UserEloquentBuilder extends \Illuminate\Database\Eloquent\Builder
}
```

### Console commands breaking changes

Command `love:recount` does not use `sync` connection by default now.
It uses `queue.default` config value.

To force run synchronous statistics recount use `--queue-connection=sync` option.

```shell
php artisan love:recount --model="App\User" --queue-connection=sync
```

## From v7 to v8

- All `weight` values are `float` now. Round them to get `integer` values as it was before
Expand Down

0 comments on commit 50bb409

Please sign in to comment.