We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8545bb commit a24d32aCopy full SHA for a24d32a
app/Models/Post.php
@@ -40,6 +40,7 @@ protected static function booted()
40
self::creating(function (Post $post) {
41
$post->state ??= PostState::PENDING;
42
$post->uuid ??= Uuid::uuid4()->toString();
43
+ $post->created_at ??= now();
44
});
45
46
self::saving(function (Post $post) {
0 commit comments