database/seeders/codSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('cod')->insert([
            'numero' => 1,
            'nome' => 'biruleibe',
        ]);
        DB::table('cod')->insert([
            'numero' => 2,
            'nome' => 'banana',
        ]);
        DB::table('cod')->insert([
            'numero' => 3,
            'nome' => 'pneu',
        ]);
    }
public function run ( ) { DB :: table ( 'cod' ) -> insert ( [ 'numero' => 1 , 'nome' => 'biruleibe' , ] ) ; DB :: table ( 'cod' ) -> insert ( [ 'numero' => 2 , 'nome' => 'banana' , ] ) ; DB :: table ( 'cod' ) -> insert ( [ 'numero' => 3 , 'nome' => 'pneu' , ] ) ; }
Run the database seeds.
Run the database seeds .