github webhooks

This commit is contained in:
Andras Bacsai committed 2023-05-09 14:42:10 +02:00
1 parent 19ad184cd6
commit 76bf601e1b
18 files changed
+217 -20

No files matched your search

+4 -1
View File
@@ -12,7 +12,10 @@ abstract class BaseModel extends Model
parent::boot();
static::creating(function (Model $model) {
$model->uuid = (string) new Cuid2(7);
// Generate a UUID if one isn't set
if (!$model->uuid) {
$model->uuid = (string) new Cuid2(7);
}
});
}
}