database/seeds/UserTableSeeder.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')->delete();
        $userData = array(
            array(
                'id' => 1,
                'first_name'=>'Admin',
                'last_name'=>'Test',
                'postal_code'=>'160055',
                'user_name' => 'admin',
                'email' => 'dev@yopmail.com',
                'email_verified_at' =>  date("Y-m-d H:i:s"),
                'password' => bcrypt('qwert@123'),
                'remember_token' => null,
                'created_at' =>  date("Y-m-d H:i:s"),
                'updated_at' =>  date("Y-m-d H:i:s"),
            ),
            array(
                'id' => 2,
                'first_name'=>'Seller',
                'last_name'=>'Test',
                'postal_code'=>'160055',
                'user_name' => 'seller',
                'email' => 'seller@yopmail.com',
                'email_verified_at' =>  date("Y-m-d H:i:s"),
                'password' => bcrypt('qwert@123'),
                'remember_token' => null,
                'created_at' =>  date("Y-m-d H:i:s"),
                'updated_at' =>  date("Y-m-d H:i:s"),
            ),
            array(
                'id' => 3,
                'first_name'=>'Buyer',
                'last_name'=>'Test',
                'postal_code'=>'160055',
                'user_name' => 'buyer',
                'email' => 'buyer@yopmail.com',
                'email_verified_at' =>  date("Y-m-d H:i:s"),
                'password' => bcrypt('qwert@123'),
                'remember_token' => null,
                'created_at' =>  date("Y-m-d H:i:s"),
                'updated_at' =>  date("Y-m-d H:i:s"),
            ),
        );
        DB::table('users')->insert($userData);
    }
public function run ( ) { DB :: table ( 'users' ) -> delete ( ) ; $ userData = array ( array ( 'id' => 1 , 'first_name' => 'Admin' , 'last_name' => 'Test' , 'postal_code' => '160055' , 'user_name' => 'admin' , 'email' => 'dev@yopmail.com' , 'email_verified_at' => date ( " Y-m-d H:i:s " ) , 'password' => bcrypt ( 'qwert@123' ) , 'remember_token' => null , 'created_at' => date ( " Y-m-d H:i:s " ) , 'updated_at' => date ( " Y-m-d H:i:s " ) , ) , array ( 'id' => 2 , 'first_name' => 'Seller' , 'last_name' => 'Test' , 'postal_code' => '160055' , 'user_name' => 'seller' , 'email' => 'seller@yopmail.com' , 'email_verified_at' => date ( " Y-m-d H:i:s " ) , 'password' => bcrypt ( 'qwert@123' ) , 'remember_token' => null , 'created_at' => date ( " Y-m-d H:i:s " ) , 'updated_at' => date ( " Y-m-d H:i:s " ) , ) , array ( 'id' => 3 , 'first_name' => 'Buyer' , 'last_name' => 'Test' , 'postal_code' => '160055' , 'user_name' => 'buyer' , 'email' => 'buyer@yopmail.com' , 'email_verified_at' => date ( " Y-m-d H:i:s " ) , 'password' => bcrypt ( 'qwert@123' ) , 'remember_token' => null , 'created_at' => date ( " Y-m-d H:i:s " ) , 'updated_at' => date ( " Y-m-d H:i:s " ) , ) , ) ; DB :: table ( 'users' ) -> insert ( $ userData ) ; }
Run the database seeds.
Run the database seeds .