antonioribeiro / countries

Laravel countries and currencies
BSD 3-Clause "New" or "Revised" License
1.82k stars 280 forks source link

how to implement this in my app? #32

Open robertnicjoo opened 7 years ago

robertnicjoo commented 7 years ago

Hi, I just installed this package on my app but have no idea how to make it work.

  1. I used php artisan vendor:publish --provider=PragmaRX\\Countries\\ServiceProvider nothing added to my config folder.

  2. i don't know i must expect any table in my database for these country and states list or not? cause there is nothing added in my migration folder as well.

3- have no idea what should i use in my controller to order to get that lists.

Would be appreciate if someone explain a bit about this package and how it works.

Thanks

olivernybroe commented 6 years ago

1. It should give you a config file called countries, which version of Laravel and PhP are you using, and any errors shown?

  1. As you can see in the data part of the documentation, it says where the data is coming from. This means all the data is stored in a package, so you do not need a database for using it.

  2. Really depends on what you want to show and what you want to do.

ghost commented 6 years ago

Can you give us proper link where you implement countries and cities states etc so that we got every thing about it plzzz....

robertnicjoo commented 6 years ago

@uruloke Hi man,

sorry for late answer today I installed this package on my laravel v.5.5.23 and here is what I want regarding to your no.2:

there is no country.php in my config folder. untitled if i'm not wrong there should be extra message include links that says this file from folder [xxxxx] copied to folder [config/cuntries.php] but here doesn't have such a thing.

no.3:

I want get countries and states (show states base on country they chose) where my users want to save their addresses and save it in my addresses table.

@jimmY276 I'm working on local there is no online version to share, sorry dude.