database/seeders/SetorsSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('setors')->insert([
            'nome' => 'alimentar',
        ]);
        DB::table('setors')->insert([
            'nome' => 'farma',
        ]);
        DB::table('setors')->insert([
            'nome' => 'esporte',
        ]);
    }
public function run ( ) { DB :: table ( 'setors' ) -> insert ( [ 'nome' => 'alimentar' , ] ) ; DB :: table ( 'setors' ) -> insert ( [ 'nome' => 'farma' , ] ) ; DB :: table ( 'setors' ) -> insert ( [ 'nome' => 'esporte' , ] ) ; }
Run the database seeds.
Run the database seeds .