koapeadu
koapeadu
markApproved, markRejected, ... functions incompatible with models with attributes with array casts
I have a model with an `array` cast on one attribute `foo`. ```php protected $casts = [ 'foo' => 'array', ]; ``` But the SQL type is `VARCHAR`. When the...
For models with an array cast, the attributesToArray() method returns the cast array instead of the serialized array. So usage of `markApproved(), markRejected(), markPostponed() and markPending()` methods of the `Moderatable`...
In laravel versions >= 5.1 the eloquent pluck method returns a collection instead of a scalar. So this fix updates the `averageRating`, `countRating`, `sumRating` and `ratingPercent` methods of the `ReviewRateable`...