database/seeders/PeriodeSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Periode::create([
            'tahun' => "2020-2021",
            'semester' => "ganjil",
            'status' => "0",
        ]);
        Periode::create([
            'tahun' => "2020-2021",
            'semester' => "genap",
            'status' => "0",
        ]);
        Periode::create([
            'tahun' => "2021-2022",
            'semester' => "ganjil",
            'status' => "1",
        ]);
    }
public function run ( ) { Periode :: create ( [ 'tahun' => " 2020-2021 " , 'semester' => " ganjil " , 'status' => " 0 " , ] ) ; Periode :: create ( [ 'tahun' => " 2020-2021 " , 'semester' => " genap " , 'status' => " 0 " , ] ) ; Periode :: create ( [ 'tahun' => " 2021-2022 " , 'semester' => " ganjil " , 'status' => " 1 " , ] ) ; }
Run the database seeds.
Run the database seeds .