database/seeds/TopAccountSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $activation_code = 'CT-' . str_random(2) . '-' . date("G")  . str_random(2);
        DB::table('users')->insert([
            'username' => 'connectricks_master',
            'firstname' => 'Connectricks',
            'lastname' => 'master',
            'email' => 'connectricks_master@gmail.com',
            'password' => Hash::make('masteradmin123123@'),
            'referrer' => 'master_account',
            'code' => $activation_code,
        ]);
        DB::table('user_captchas')->insert([
            'Solved' => 0,
            'Earnings' => 0,
            'user_id' => 1,
            'username' => 'connectricks_master',
            'user_email' => 'connectricks_master@gmail.com',
            'captcha_count' => 50000,
        ]);
        DB::table('wallets')->insert([
            'username' => 'connectricks_master',
            'email' => 'connectricks_master@gmail.com',
            'name' => 'Connectricks Master',
            'user_id' => 1,
            'deposit' => 0,
            'withdrawal' => 0,
        ]);
        DB::table('referals')->insert([
            'name' => 'Connectricks Master',
            'Referer_code' => 'Connectricks_Master',
            'MyRef_code' => $activation_code,
            'reward' => 30,
            'indirect' => 10,
        ]);
    }
public function run ( ) { $ activation_code = 'CT-' . str_random ( 2 ) . '-' . date ( " G " ) . str_random ( 2 ) ; DB :: table ( 'users' ) -> insert ( [ 'username' => 'connectricks_master' , 'firstname' => 'Connectricks' , 'lastname' => 'master' , 'email' => 'connectricks_master@gmail.com' , 'password' => Hash :: make ( 'masteradmin123123@' ) , 'referrer' => 'master_account' , 'code' => $ activation_code , ] ) ; DB :: table ( 'user_captchas' ) -> insert ( [ 'Solved' => 0 , 'Earnings' => 0 , 'user_id' => 1 , 'username' => 'connectricks_master' , 'user_email' => 'connectricks_master@gmail.com' , 'captcha_count' => 50000 , ] ) ; DB :: table ( 'wallets' ) -> insert ( [ 'username' => 'connectricks_master' , 'email' => 'connectricks_master@gmail.com' , 'name' => 'Connectricks Master' , 'user_id' => 1 , 'deposit' => 0 , 'withdrawal' => 0 , ] ) ; DB :: table ( 'referals' ) -> insert ( [ 'name' => 'Connectricks Master' , 'Referer_code' => 'Connectricks_Master' , 'MyRef_code' => $ activation_code , 'reward' => 30 , 'indirect' => 10 , ] ) ; }
Run the database seeds.
Run the database seeds .