database/seeds/RoleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $admin = Role::create(
            ['tipe' => 'Admin']
        );
        $teacher = Role::create(
            ['tipe' => 'Teacher']
        );
        $peserta = Role::create(
            ['tipe' => 'Peserta']
        );
    }
public function run ( ) { $ admin = Role :: create ( [ 'tipe' => 'Admin' ] ) ; $ teacher = Role :: create ( [ 'tipe' => 'Teacher' ] ) ; $ peserta = Role :: create ( [ 'tipe' => 'Peserta' ] ) ; }
Run the database seeds.
Run the database seeds .