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')->truncate();
        DB::table('users')->insert([[
            'name'=> 'Durgesh',
            'email'=>'durgesh@gmail.com',
            'password'=>Hash::make('password'),
        ],
        [
            'name'=> 'Pappu',
            'email'=>'pappu@gmail.com',
            'password'=>Hash::make('password'),
        ]]);
    }
public function run ( ) { DB :: table ( 'users' ) -> truncate ( ) ; DB :: table ( 'users' ) -> insert ( [ [ 'name' => 'Durgesh' , 'email' => 'durgesh@gmail.com' , 'password' => Hash :: make ( 'password' ) , ] , [ 'name' => 'Pappu' , 'email' => 'pappu@gmail.com' , 'password' => Hash :: make ( 'password' ) , ] ] ) ; }
Run the database seeds.
Run the database seeds .
//