database/seeds/KategoriTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        foreach (static::Kategori as $kategori) {
            \App\Model\Kategori::create([
                'nama' => $kategori
            ]);
        }
    }
public function run ( ) { foreach ( static :: Kategori as $ kategori ) { \ App \ Model \ Kategori :: create ( [ 'nama' => $ kategori ] ) ; } }
Run the database seeds.
Run the database seeds .