php - how to get city inside a especific country with Faker extension -
i'm working fzaninotto/faker extension in laravel 5 populate database, thing have table countries , table cities so, call $faker->country
how can city inside country? don't want example bogotá belongs eeuu thank you!
you'd make generator , add provider (a list of them can found here) country:
$faker = new faker\generator(); $faker->addprovider(new faker\provider\en_au\address($faker)); $faker->state; // give australian states
if specific need isn't covered available providers, may need create custom provider.
Comments
Post a Comment