Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $product = Product::find($data["id"]);
  2. $product->title = $data["title"];
  3. $product->description = $data["description"];
  4. $product->price = $data["price"];
  5. //etc (string values were previously sanitized for xss attacks)
  6. $product->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement