database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        User::create([
            'name' => "User Satu",
            'email' => "usersatu@gmail.com",
            'password' => Hash::make('masukdong'),
            'role' => 0,
            'statusOne' => "Proses Pendaftaran",
        ]);
        User::create([
            'name' => "User Dua",
            'email' => "userdua@gmail.com",
            'password' => Hash::make('masukdong'),
            'role' => 0,
            'statusOne' => "Proses Seleksi",
        ]);
        User::create([
            'name' => "User Tiga",
            'email' => "usertiga@gmail.com",
            'password' => Hash::make('masukdong'),
            'role' => 0,
            'statusOne' => "Proses Seleksi",
        ]);
        User::create([
            'name' => "User Empat",
            'email' => "userempat@gmail.com",
            'password' => Hash::make('masukdong'),
            'role' => 0,
            'statusOne' => "Proses Seleksi",
        ]);
        User::create([
            'name' => "User Lima",
            'email' => "userlima@gmail.com",
            'password' => Hash::make('masukdong'),
            'role' => 0,
            'statusOne' => "Proses Seleksi",
        ]);
        User::create([
            'name' => "User Enam",
            'email' => "userenam@gmail.com",
            'password' => Hash::make('masukdong'),
            'role' => 0,
            'statusOne' => "Proses Seleksi",
        ]);
        User::create([
            'name' => "Admin",
            'email' => "admin@gmail.com",
            'password' => Hash::make('masukdong'),
            'role' => 1,
        ]);
    }
public function run ( ) { User :: create ( [ 'name' => " User Satu " , 'email' => " usersatu@gmail.com " , 'password' => Hash :: make ( 'masukdong' ) , 'role' => 0 , 'statusOne' => " Proses Pendaftaran " , ] ) ; User :: create ( [ 'name' => " User Dua " , 'email' => " userdua@gmail.com " , 'password' => Hash :: make ( 'masukdong' ) , 'role' => 0 , 'statusOne' => " Proses Seleksi " , ] ) ; User :: create ( [ 'name' => " User Tiga " , 'email' => " usertiga@gmail.com " , 'password' => Hash :: make ( 'masukdong' ) , 'role' => 0 , 'statusOne' => " Proses Seleksi " , ] ) ; User :: create ( [ 'name' => " User Empat " , 'email' => " userempat@gmail.com " , 'password' => Hash :: make ( 'masukdong' ) , 'role' => 0 , 'statusOne' => " Proses Seleksi " , ] ) ; User :: create ( [ 'name' => " User Lima " , 'email' => " userlima@gmail.com " , 'password' => Hash :: make ( 'masukdong' ) , 'role' => 0 , 'statusOne' => " Proses Seleksi " , ] ) ; User :: create ( [ 'name' => " User Enam " , 'email' => " userenam@gmail.com " , 'password' => Hash :: make ( 'masukdong' ) , 'role' => 0 , 'statusOne' => " Proses Seleksi " , ] ) ; User :: create ( [ 'name' => " Admin " , 'email' => " admin@gmail.com " , 'password' => Hash :: make ( 'masukdong' ) , 'role' => 1 , ] ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create(); // Buat Testing Admin // End Buat Testing