database/seeders/MahasiswaSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $mhs1 = new Mahasiswa;
        $mhs1->nbi = "1461900042";
        $mhs1->nama_mhs = "Wirawan Khairul Majid";
        $mhs1->save();
        $mhs2 = new Mahasiswa;
        $mhs2->nbi = "1461900043";
        $mhs2->nama_mhs = "Wirawan KM";
        $mhs2->save();
    }
public function run ( ) { $ mhs1 = new Mahasiswa ; $ mhs1 -> nbi = " 1461900042 " ; $ mhs1 -> nama_mhs = " Wirawan Khairul Majid " ; $ mhs1 -> save ( ) ; $ mhs2 = new Mahasiswa ; $ mhs2 -> nbi = " 1461900043 " ; $ mhs2 -> nama_mhs = " Wirawan KM " ; $ mhs2 -> save ( ) ; }
Run the database seeds.
Run the database seeds .