Method Illuminate\Support\Collection::appends does not exist

PHOTO EMBED

Fri Jun 11 2021 20:54:08 GMT+0000 (Coordinated Universal Time)

Saved by @jeromew #php #laravel

// replace get()
$products = Product::where('active', 1)->get();

// by paginate()
$products = Product::where('active', 1)->paginate(10);
content_copyCOPY