Kategori Seeder

 avatar
user_3285855
php
6 months ago
428 B
3
Indexable
Never
<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Kategori;

class KategoriSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Kategori::create([
            'nama' => 'Transport',
        ]);

        Kategori::create([
            'nama' => 'Honor',
        ]);
    }
}
Leave a Comment