database/seeders/HewanSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $hwn1 = new Hewan;
        $hwn1 -> kelamin = "Jantan";
        $hwn1 -> nama_hwn = "Singa";
        $hwn1 -> save();
        $hwn2 = new Hewan;
        $hwn2 -> kelamin = "Betina";
        $hwn2 -> nama_hwn = "Singa";
        $hwn2 -> save();
    }
public function run ( ) { $ hwn1 = new Hewan ; $ hwn1 -> kelamin = " Jantan " ; $ hwn1 -> nama_hwn = " Singa " ; $ hwn1 -> save ( ) ; $ hwn2 = new Hewan ; $ hwn2 -> kelamin = " Betina " ; $ hwn2 -> nama_hwn = " Singa " ; $ hwn2 -> save ( ) ; }
Run the database seeds.
Run the database seeds .