Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $commande = new Commande();
- $commande->id = $uuid->toString();
- $commande->nom = filter_var($body["nom"], FILTER_SANITIZE_STRING);
- $commande->mail = filter_var($body["mail"], FILTER_SANITIZE_STRING);
- $commande->token = bin2hex(openssl_random_pseudo_bytes(32));
- $commande->montant = 0;
- $commande->livraison = $body["livraison"]["date"] . " " . $body["livraison"]["heure"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement