database/seeders/MemberSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $data = [
            [
               'nama' => 'Momo',
               'alamat' => 'Jalan Babakan Nanjung',
               'jenis_kelamin' => 'L',
               'tlp' => '+6285722367921'
            ],
            [
                'nama' => 'Mimi',
                'alamat' => 'Jalan Nanjung Panday',
                'jenis_kelamin' => 'P',
                'tlp' => '+6281546963707'
            ],
            [
                'nama' => 'Mumu',
                'alamat' => 'Jalan bbkn',
                'jenis_kelamin' => 'P',
                'tlp' => '+6289525310735'
            ]
        ];
        foreach ($data as $d) {
            $create = Member::create($d);
        }
    }
public function run ( ) { $ data = [ [ 'nama' => 'Momo' , 'alamat' => 'Jalan Babakan Nanjung' , 'jenis_kelamin' => 'L' , 'tlp' => '+6285722367921' ] , [ 'nama' => 'Mimi' , 'alamat' => 'Jalan Nanjung Panday' , 'jenis_kelamin' => 'P' , 'tlp' => '+6281546963707' ] , [ 'nama' => 'Mumu' , 'alamat' => 'Jalan bbkn' , 'jenis_kelamin' => 'P' , 'tlp' => '+6289525310735' ] ] ; foreach ( $ data as $ d ) { $ create = Member :: create ( $ d ) ; } }
Run the database seeds.
Run the database seeds .