Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $product = Product::find($data["id"]);
- $product->title = $data["title"];
- $product->description = $data["description"];
- $product->price = $data["price"];
- //etc (string values were previously sanitized for xss attacks)
- $product->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement