insertGetId([ 'api_key' => str_random(30), ]); // populate user table $userId = DB::table('users')->insertGetId([ 'account_id' => $accountID, 'first_name' => 'yuno_firstname', 'last_name' => 'yuno_lastname', 'email' => 'yuno_email', 'password' => bcrypt('admin'), 'timezone' => 'America/New_York', 'remember_token' => str_random(10), ]); $faker = Faker::create(); } }