controller :
public function update(Request $request, Product $product) { $request->validate([\'name\'=>\'required\', \'price\'=>\'r