Updated locations seeder array formatting

Updated locations seeder array formatting
This commit is contained in:
cp6 2022-03-06 21:47:00 +11:00
parent a388ee630b
commit 770437bc5f

View File

@ -8,264 +8,94 @@ use Illuminate\Support\Facades\DB;
class LocationsSeeder extends Seeder class LocationsSeeder extends Seeder
{ {
public function run() public function run()
{ {//Note add any new locations at the bottom of the array
$locations = array( $locations = [
array( ['name' => 'My basement'],
"name" => "My basement", ['name' => 'Adelaide, Australia'],
), ['name' => 'Amsterdam, Netherlands'],
array( ['name' => 'Atlanta, USA'],
"name" => "Adelaide, Australia", ['name' => 'Auckland, New Zealand'],
), ['name' => 'Bangkok, Thailand'],
array( ['name' => 'Barcelona, Spain'],
"name" => "Amsterdam, Netherlands", ['name' => 'Beijing, China'],
), ['name' => 'Bengaluru, India'],
array( ['name' => 'Berlin, Germany'],
"name" => "Atlanta, USA", ['name' => 'Brisbane, Australia'],
), ['name' => 'Brussels, Belgium'],
array( ['name' => 'Bucharest, Romania'],
"name" => "Auckland, New Zealand", ['name' => 'Buenos Aires, Argentina'],
), ['name' => 'Charlotte, USA'],
array( ['name' => 'Chennai, India'],
"name" => "Bangkok, Thailand", ['name' => 'Chicago, USA'],
), ['name' => 'Christchurch, New Zealand'],
array( ['name' => 'Dallas, USA'],
"name" => "Barcelona, Spain", ['name' => 'Denver, USA'],
), ['name' => 'Dhaka, Bangladesh'],
array( ['name' => 'Dublin, Ireland'],
"name" => "Beijing, China", ['name' => 'Frankfurt, Germany'],
), ['name' => 'Hamburg, Germany'],
array( ['name' => 'Helsinki, Finland'],
"name" => "Bengaluru, India", ['name' => 'Hong Kong'],
), ['name' => 'Houston, USA'],
array( ['name' => 'Istanbul, Turkey'],
"name" => "Berlin, Germany", ['name' => 'Jakarta, Indonesia'],
), ['name' => 'Johannesburg, South Africa'],
array( ['name' => 'Kansas City, USA'],
"name" => "Brisbane, Australia", ['name' => 'Kuala Lumpur, Malaysia'],
), ['name' => 'Kiev, Ukraine'],
array( ['name' => 'Las Vegas, USA'],
"name" => "Brussels, Belgium", ['name' => 'London, United kingdom'],
), ['name' => 'Los Angeles, USA'],
array( ['name' => 'Luxembourg'],
"name" => "Bucharest, Romania", ['name' => 'Lyon, France'],
), ['name' => 'Madrid, Spain'],
array( ['name' => 'Manchester, United Kingdom'],
"name" => "Buenos Aires, Argentina", ['name' => 'Melbourne, Australia'],
), ['name' => 'Mexico City, Mexico'],
array( ['name' => 'Miami, USA'],
"name" => "Charlotte, USA", ['name' => 'Milan, Italy'],
), ['name' => 'Montreal, Canada'],
array( ['name' => 'Moscow, Russia'],
"name" => "Chennai, India", ['name' => 'Mumbai, India'],
), ['name' => 'Munich, Germany'],
array( ['name' => 'New Delhi, India'],
"name" => "Chicago, USA", ['name' => 'New Jersey, USA'],
), ['name' => 'New York, USA'],
array( ['name' => 'Newcastle, United Kingdom'],
"name" => "Christchurch, New Zealand", ['name' => 'Nuremberg, Germany'],
), ['name' => 'Ogden, USA'],
array( ['name' => 'Oslo, Norway'],
"name" => "Dallas, USA", ['name' => 'Paris, France'],
), ['name' => 'Perth, Australia'],
array( ['name' => 'Phoenix, USA'],
"name" => "Denver, USA", ['name' => 'Philadelphia, USA'],
), ['name' => 'Portland, USA'],
array( ['name' => 'Riga, Latvia'],
"name" => "Dhaka, Bangladesh", ['name' => 'Rome, Italy'],
), ['name' => 'Rotterdam, Netherlands'],
array( ['name' => 'Salt Lake City, USA'],
"name" => "Dublin, Ireland", ['name' => 'San Diego, USA'],
), ['name' => 'San Francisco, USA'],
array( ['name' => 'San Jose, USA'],
"name" => "Frankfurt, Germany", ['name' => 'Seattle, USA'],
), ['name' => 'Seoul, South Korea'],
array( ['name' => 'Shanghai, China'],
"name" => "Hamburg, Germany", ['name' => 'Silicon Valley, USA'],
), ['name' => 'Singapore'],
array( ['name' => 'Sofia, Bulgaria'],
"name" => "Helsinki, Finland", ['name' => 'St Petersburg, Russia'],
), ['name' => 'Stockholm, Sweden'],
array( ['name' => 'Sydney, Australia'],
"name" => "Hong Kong", ['name' => 'Tampa, USA'],
), ['name' => 'Tokyo, Japan'],
array( ['name' => 'Toronto, Canada'],
"name" => "Houston, USA", ['name' => 'Vancouver, Canada'],
), ['name' => 'Warsaw, Poland'],
array( ['name' => 'Washington, USA'],
"name" => "Istanbul, Turkey", ['name' => 'Wellington, New Zealand'],
), ['name' => 'Zurich, Switzerland'],
array( ['name' => 'Quebec, Canada']
"name" => "Jakarta, Indonesia", ];
),
array(
"name" => "Johannesburg, South Africa",
),
array(
"name" => "Kansas City, USA",
),
array(
"name" => "Kuala Lumpur, Malaysia",
),
array(
"name" => "Kiev, Ukraine",
),
array(
"name" => "Las Vegas, USA",
),
array(
"name" => "London, United kingdom",
),
array(
"name" => "Los Angeles, USA",
),
array(
"name" => "Luxembourg",
),
array(
"name" => "Lyon, France",
),
array(
"name" => "Madrid, Spain",
),
array(
"name" => "Manchester, United Kingdom",
),
array(
"name" => "Melbourne, Australia",
),
array(
"name" => "Mexico City, Mexico",
),
array(
"name" => "Miami, USA",
),
array(
"name" => "Milan, Italy",
),
array(
"name" => "Montreal, Canada",
),
array(
"name" => "Moscow, Russia",
),
array(
"name" => "Mumbai, India",
),
array(
"name" => "Munich, Germany",
),
array(
"name" => "New Delhi, India",
),
array(
"name" => "New Jersey, USA",
),
array(
"name" => "New York, USA",
),
array(
"name" => "Newcastle, United Kingdom",
),
array(
"name" => "Nuremberg, Germany",
),
array(
"name" => "Ogden, USA",
),
array(
"name" => "Oslo, Norway",
),
array(
"name" => "Paris, France",
),
array(
"name" => "Perth, Australia",
),
array(
"name" => "Phoenix, USA",
),
array(
"name" => "Philadelphia, USA",
),
array(
"name" => "Portland, USA",
),
array(
"name" => "Riga, Latvia",
),
array(
"name" => "Rome, Italy",
),
array(
"name" => "Rotterdam, Netherlands",
),
array(
"name" => "Salt Lake City, USA",
),
array(
"name" => "San Diego, USA",
),
array(
"name" => "San Francisco, USA",
),
array(
"name" => "San Jose, USA",
),
array(
"name" => "Seattle, USA",
),
array(
"name" => "Seoul, South Korea",
),
array(
"name" => "Shanghai, China",
),
array(
"name" => "Silicon Valley, USA",
),
array(
"name" => "Singapore",
),
array(
"name" => "Sofia, Bulgaria",
),
array(
"name" => "St Petersburg, Russia",
),
array(
"name" => "Stockholm, Sweden",
),
array(
"name" => "Sydney, Australia",
),
array(
"name" => "Tampa, USA",
),
array(
"name" => "Tokyo, Japan",
),
array(
"name" => "Toronto, Canada",
),
array(
"name" => "Vancouver, Canada",
),
array(
"name" => "Warsaw, Poland",
),
array(
"name" => "Washington, USA",
),
array(
"name" => "Wellington, New Zealand",
),
array(
"name" => "Zurich, Switzerland",
),
array(
"name" => "Quebec, Canada",
),
);
DB::table('locations')->insert($locations); DB::table('locations')->insert($locations);