feat: anggota dapat menulis artikel dengan workflow approval sebelum diterbitkan
This commit is contained in:
@@ -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'])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user