database/seeders/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('users')->insert([
            'user_name' => 'Customer',
            'email' => 'nndthinh@gmail.com',
            'role_id' => "0",
            'password' =>  Hash::make("123456789")
        ]);
        DB::table('users')->insert([
            'user_name' => 'thinh',
            'email' => 'nndthinh2802@gmail.com',
            'role_id' => "1",
            'password' =>  Hash::make("123456789")
        ]);
        DB::table('users')->insert([
            'user_name' => 'Huy',
            'email' => 'thinh48691953@gmail.com',
            'role_id' => "0",
            'password' =>  Hash::make("123456789")
        ]);
        DB::table('users')->insert([
            'user_name' => 'Bac',
            'email' => 'bbuon709@gmail.com',
            'role_id' => "0",
            'password' =>  Hash::make("123456789")
        ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ 'user_name' => 'Customer' , 'email' => 'nndthinh@gmail.com' , 'role_id' => " 0 " , 'password' => Hash :: make ( " 123456789 " ) ] ) ; DB :: table ( 'users' ) -> insert ( [ 'user_name' => 'thinh' , 'email' => 'nndthinh2802@gmail.com' , 'role_id' => " 1 " , 'password' => Hash :: make ( " 123456789 " ) ] ) ; DB :: table ( 'users' ) -> insert ( [ 'user_name' => 'Huy' , 'email' => 'thinh48691953@gmail.com' , 'role_id' => " 0 " , 'password' => Hash :: make ( " 123456789 " ) ] ) ; DB :: table ( 'users' ) -> insert ( [ 'user_name' => 'Bac' , 'email' => 'bbuon709@gmail.com' , 'role_id' => " 0 " , 'password' => Hash :: make ( " 123456789 " ) ] ) ; }
Run the database seeds.
Run the database seeds .