feat: anggota dapat menulis artikel dengan workflow approval sebelum diterbitkan

This commit is contained in:
2026-04-03 06:48:06 +07:00
parent 5d14b55173
commit a7e10600d4
12 changed files with 339 additions and 10 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class PostSeeder extends Seeder
foreach ($posts as $data) {
Post::firstOrCreate(
['slug' => \Illuminate\Support\Str::slug($data['title'])],
array_merge($data, ['author_id' => $author->id])
array_merge($data, ['author_id' => $author->id, 'status' => 'published'])
);
}
}