database/seeds/TypecompteSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('typecomptes')->insert([
            'nom'   => 'Basique',
            'montantCotis'  => 0
        ]);
        DB::table('typecomptes')->insert([
            'nom'   => 'Premium',
            'montantCotis'  => 80000
        ]);
        DB::table('typecomptes')->insert([
            'nom'   => 'CCIAM',
            'montantCotis'  => 80000
        ]);
    }
public function run ( ) { DB :: table ( 'typecomptes' ) -> insert ( [ 'nom' => 'Basique' , 'montantCotis' => 0 ] ) ; DB :: table ( 'typecomptes' ) -> insert ( [ 'nom' => 'Premium' , 'montantCotis' => 80000 ] ) ; DB :: table ( 'typecomptes' ) -> insert ( [ 'nom' => 'CCIAM' , 'montantCotis' => 80000 ] ) ; }
Run the database seeds.
Run the database seeds .