I try to update articles with lazyById as written in the documentation,
but have an error Method Illuminate\Database\Eloquent\Collection::lazyById does not exist
@ajvanho You will have to apply the lazyById() method over a Query Builder instance not a collection, for example:
Articles::where(...)->lazyById(...)
It seems like you are doing something like this:
$articles = Articles::where(...)->get(); $articles->lazyById(...)
Hope this helps.