database/seeders/TumbuhanSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $tmbhn1 = new Tumbuhan;
        $tmbhn1 -> kelamin = "Jantan";
        $tmbhn1 -> nama_tmbhn = "Bunga";
        $tmbhn1 -> save();
        $tmbhn2 = new Tumbuhan;
        $tmbhn2 -> kelamin = "Betina";
        $tmbhn2 -> nama_tmbhn = "Bunga";
        $tmbhn2 -> save();
    }
public function run ( ) { $ tmbhn1 = new Tumbuhan ; $ tmbhn1 -> kelamin = " Jantan " ; $ tmbhn1 -> nama_tmbhn = " Bunga " ; $ tmbhn1 -> save ( ) ; $ tmbhn2 = new Tumbuhan ; $ tmbhn2 -> kelamin = " Betina " ; $ tmbhn2 -> nama_tmbhn = " Bunga " ; $ tmbhn2 -> save ( ) ; }
Run the database seeds.
Run the database seeds .