Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L5 config file isn't applied #8

Open
ux-engineer opened this issue Nov 20, 2016 · 2 comments
Open

L5 config file isn't applied #8

ux-engineer opened this issue Nov 20, 2016 · 2 comments

Comments

@ux-engineer
Copy link

I'm getting this error even though I've set country to FI (Finland), and tried to lookup for 5 digit long postal code – in Finland all postal codes are 5 digit long...

Wrong zip length: in BR zip length is 8 not 5.

@ux-engineer
Copy link
Author

ux-engineer commented Nov 20, 2016

Got it working:

$z = new ZipCode;
$z->setCountry('FI');
$zip = $z->find($code);

However before using setCountry() I've had this config with L5 in config/zipcode.php so it seems this config file's country -key isn't applied.

<?php

return [

    'country' => 'FI',

    'preferred_web_service' => 'Geonames',

    'query_parameters' => [
        'geonames_username' => 'XXX',
    ]

];

@ux-engineer
Copy link
Author

Just noticed the preferred_web_service isn't applied either.

@ux-engineer ux-engineer changed the title Zip length error (expecting 8 digit long postal code) L5 config file isn't applied Nov 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant