I have a Products CRUD controller that seems like:
public function index(Request $request)
{
$products = Products::all();
return view('admin.products.index', compact('products'));
}
In this way a serious performance issue should be occurred with large data models. I think it will be better if ::paginate() used instead of all()