database/seeds/typeofscraptableseeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
    	DB::table('typeofscraps')->insert([
        	['id' => 1,'name' => 'HMS 1&2' ],
        	['id' => 2,'name' => 'End Cutting' ],
        	['id' => 3,'name' => 'Shredded' ],
        	['id' => 4,'name' => 'ReRolling' ],
        	['id' => 5,'name' => 'CRC' ],
        	['id' => 6,'name' => 'Turning' ],
        	['id' => 7,'name' => 'Other' ],
            ]);
    }
public function run ( ) { DB :: table ( 'typeofscraps' ) -> insert ( [ [ 'id' => 1 , 'name' => 'HMS 1&2' ] , [ 'id' => 2 , 'name' => 'End Cutting' ] , [ 'id' => 3 , 'name' => 'Shredded' ] , [ 'id' => 4 , 'name' => 'ReRolling' ] , [ 'id' => 5 , 'name' => 'CRC' ] , [ 'id' => 6 , 'name' => 'Turning' ] , [ 'id' => 7 , 'name' => 'Other' ] , ] ) ; }
Run the database seeds.
Run the database seeds .