database/seeds/CategorySeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('categories')->insert([
            'category_name' => 'ANALGESIK NARKOTIK'
        ]);
        DB::table('categories')->insert([
            'category_name' => 'ANALGESIK NON NARKOTIK'
        ]);
        DB::table('categories')->insert([
            'category_name' => 'ANTIPIRAI'
        ]);
        DB::table('categories')->insert([
            'category_name' => 'NYERI NEUROPATIK'
        ]);
    }
public function run ( ) { DB :: table ( 'categories' ) -> insert ( [ 'category_name' => 'ANALGESIK NARKOTIK' ] ) ; DB :: table ( 'categories' ) -> insert ( [ 'category_name' => 'ANALGESIK NON NARKOTIK' ] ) ; DB :: table ( 'categories' ) -> insert ( [ 'category_name' => 'ANTIPIRAI' ] ) ; DB :: table ( 'categories' ) -> insert ( [ 'category_name' => 'NYERI NEUROPATIK' ] ) ; }
Run the database seeds.
Run the database seeds .