leave the order reference at 5 characters for now

This commit is contained in:
Jeremy Quinton 2018-10-16 20:53:36 +02:00
parent 31820bcf68
commit d07ecc79d1
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class Order extends MyBaseModel
parent::boot();
static::creating(function ($order) {
$order->order_reference = strtoupper(str_random(11)) . date('jn');
$order->order_reference = strtoupper(str_random(5)) . date('jn');
});
}
}