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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -