database/seeders/AccountSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('account')->insert([
           ['username' => 'admin',
           'email' => 'admin@gmail.com',
           'password' => Hash::make('123456')],
           ['username' => 'khachhang1',
            'email' => 'khachhang1@gmail.com',
            'password' => Hash::make('123456')]
        ]);
    }
public function run ( ) { DB :: table ( 'account' ) -> insert ( [ [ 'username' => 'admin' , 'email' => 'admin@gmail.com' , 'password' => Hash :: make ( '123456' ) ] , [ 'username' => 'khachhang1' , 'email' => 'khachhang1@gmail.com' , 'password' => Hash :: make ( '123456' ) ] ] ) ; }
Run the database seeds.
Run the database seeds .