database/seeds/GrilleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $faker = Faker\Factory::create();
        for ($i = 1 ;$i < 50; $i++){            
            DB::table('grilles')->insert([
                'activite'   => $faker->name
            ]);
        }
    }
public function run ( ) { $ faker = Faker \ Factory :: create ( ) ; for ( $ i = 1 ; $ i < 50 ; $ i ++ ) { DB :: table ( 'grilles' ) -> insert ( [ 'activite' => $ faker -> name ] ) ; } }
Run the database seeds.
Run the database seeds .