paginate(Producto::getPaginar($request))); } public function categorias() { return Producto::all()->pluck('categoria')->unique()->flatten(); } }