Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1.      $commande = new Commande();
  2.                 $commande->id = $uuid->toString();
  3.                 $commande->nom = filter_var($body["nom"], FILTER_SANITIZE_STRING);
  4.                 $commande->mail = filter_var($body["mail"], FILTER_SANITIZE_STRING);
  5.                 $commande->token = bin2hex(openssl_random_pseudo_bytes(32));
  6.                 $commande->montant = 0;
  7.                 $commande->livraison = $body["livraison"]["date"] . " " . $body["livraison"]["heure"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement