35 lines
892 B
PHP
35 lines
892 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class BlogSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$blogs = [
|
|
[
|
|
'title' => 'Blog Post 1',
|
|
'kategori' => 'Technology',
|
|
'deskripsi' => 'This is a description for the first blog post.',
|
|
],
|
|
[
|
|
'title' => 'Blog Post 2',
|
|
'kategori' => 'Health',
|
|
'deskripsi' => 'This is a description for the second blog post.',
|
|
|
|
],
|
|
[
|
|
'title' => 'Blog Post 3',
|
|
'kategori' => 'Lifestyle',
|
|
'deskripsi' => 'This is a description for the third blog post.',
|
|
|
|
]
|
|
];
|
|
|
|
}} |