This commit is contained in:
f4ilji
2024-11-02 13:14:37 +05:00
parent 114819f36c
commit 34983efe79
11 changed files with 554 additions and 522 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class PostFactory extends Factory
'reading_time' => $reading_time,
'category_id' => $category_id,
'user_id' => $user_id,
'publish_at' => ($status == PostStatus::PUBLISHED) ? now() : null,
'publish_at' => ($status === PostStatus::PUBLISHED) ? now() : null,
'created_at' => now(),
'updated_at' => now(),
];