I am using both this and efficient-uuid packages, and did this test in tinker. This could cause some pretty nasty issues with distributing data across different persistence systems, for instance.
Would a PR with something like the below be adequate? I can throw some tests on it, as well.
// Just a little extra protection against `dah l33t h4x` and dumb accidents.
static::saving(function ($model) {
$model->id = $model->getOriginal('uuid');
});
I don't want this package to be responsible for preventing you from overriding a UUID if it's set. That's something you can control within your own application.
I am using both this and efficient-uuid packages, and did this test in tinker. This could cause some pretty nasty issues with distributing data across different persistence systems, for instance.
Would a PR with something like the below be adequate? I can throw some tests on it, as well.
Thanks, and cheers!