database/seeds/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $admin = User::create([
            'name' => 'Admin',
            'email' => 'admin@gmail.com',
            'password' => Hash::make('12345678'),
            'email_verified_at' => now(),
            'kode' => null,
        ]);
        $admin->assignRole('admin');
        $pimpinan = User::create([
            'name' => 'Buzz Lightyear',
            'email' => 'pimpinan@gmail.com',
            'password' => Hash::make('12345678'),
            'email_verified_at' => now(),
            'kode' => null,
        ]);
        $pimpinan->assignRole('pimpinan');
        $kasir = User::create([
            'name' => 'Jessica Jessie',
            'email' => 'kasir@gmail.com',
            'password' => Hash::make('12345678'),
            'email_verified_at' => now(),
            'kode' => null,
        ]);
        $kasir->assignRole('kasir');
        $staff = User::create([
            'name' => 'Sheriff Woody Pride',
            'email' => 'staff@gmail.com',
            'password' => Hash::make('12345678'),
            'email_verified_at' => now(),
            'kode' => null,
        ]);
        $staff->assignRole('staff');
        $member = User::create([
            'name' => 'Usman Khabilah',
            'email' => 'utsman.khabillah@gmail.com',
            'password' => Hash::make('12345678'),
            'email_verified_at' => null,
            'kode' => null,
        ]);
        $member->assignRole('kasir');
        $member = User::create([
            'name' => 'Nabil Aramiko',
            'email' => 'aramik.saja@gmail.com',
            'password' => Hash::make('12345678'),
            'email_verified_at' => null,
            'kode' => null,
        ]);
        $member->assignRole('kasir');
    }
public function run ( ) { $ admin = User :: create ( [ 'name' => 'Admin' , 'email' => 'admin@gmail.com' , 'password' => Hash :: make ( '12345678' ) , 'email_verified_at' => now ( ) , 'kode' => null , ] ) ; $ admin -> assignRole ( 'admin' ) ; $ pimpinan = User :: create ( [ 'name' => 'Buzz Lightyear' , 'email' => 'pimpinan@gmail.com' , 'password' => Hash :: make ( '12345678' ) , 'email_verified_at' => now ( ) , 'kode' => null , ] ) ; $ pimpinan -> assignRole ( 'pimpinan' ) ; $ kasir = User :: create ( [ 'name' => 'Jessica Jessie' , 'email' => 'kasir@gmail.com' , 'password' => Hash :: make ( '12345678' ) , 'email_verified_at' => now ( ) , 'kode' => null , ] ) ; $ kasir -> assignRole ( 'kasir' ) ; $ staff = User :: create ( [ 'name' => 'Sheriff Woody Pride' , 'email' => 'staff@gmail.com' , 'password' => Hash :: make ( '12345678' ) , 'email_verified_at' => now ( ) , 'kode' => null , ] ) ; $ staff -> assignRole ( 'staff' ) ; $ member = User :: create ( [ 'name' => 'Usman Khabilah' , 'email' => 'utsman.khabillah@gmail.com' , 'password' => Hash :: make ( '12345678' ) , 'email_verified_at' => null , 'kode' => null , ] ) ; $ member -> assignRole ( 'kasir' ) ; $ member = User :: create ( [ 'name' => 'Nabil Aramiko' , 'email' => 'aramik.saja@gmail.com' , 'password' => Hash :: make ( '12345678' ) , 'email_verified_at' => null , 'kode' => null , ] ) ; $ member -> assignRole ( 'kasir' ) ; }
Run the database seeds.
Run the database seeds .