database/seeds/PacksPubSeeder.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();
        $montant = 0;
        for ($i = 1 ;$i < 5; $i++){            
            DB::table('packs')->insert([
                'libelle_pack'   => $faker->company,
                'montant'       => $montant + 500
            ]);
        }
    }
public function run ( ) { $ faker = Faker \ Factory :: create ( ) ; $ montant = 0 ; for ( $ i = 1 ; $ i < 5 ; $ i ++ ) { DB :: table ( 'packs' ) -> insert ( [ 'libelle_pack' => $ faker -> company , 'montant' => $ montant + 500 ] ) ; } }
Run the database seeds.
Run the database seeds .